Skip to content

Commit 5e3ef5c

Browse files
authored
Fix Swift type inference issue for Xcode 26.4 beta (#604)
## Summary - Adds an explicit `: Wrapped` type annotation to `Optional+Extensions.swift` to fix a type inference regression in the Xcode 26.4 beta Swift compiler. ## Test plan - [x] Verified the file compiles with `DEVELOPER_DIR=/Applications/Xcode-26.4.0-Beta.app swiftc`
2 parents d1a5a51 + 0899c7e commit 5e3ef5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BlueprintUIAccessibilityCore/Sources/Extensions/Optional+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Foundation
33
extension Optional where Wrapped: RangeReplaceableCollection {
44

55
static func + (left: Wrapped?, right: Wrapped?) -> Wrapped? {
6-
let val = (left ?? Wrapped()) + (right ?? Wrapped())
6+
let val: Wrapped = (left ?? Wrapped()) + (right ?? Wrapped())
77
return val.isEmpty ? nil : val
88
}
99

0 commit comments

Comments
 (0)