Skip to content

Commit 6f73933

Browse files
authored
Merge pull request #34680 from xedin/rdar-71226646
[TypeChecker] NFC: Add one more test-case for SR-13442
2 parents 4133ead + 24b69f5 commit 6f73933

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/Constraints/keypath.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,5 @@ func SR13442<T>(_ x: KeyPath<String?, T>) -> T { "1"[keyPath: x] }
186186
func testSR13442() {
187187
_ = SR13442(\.!.count) // OK
188188
_ = SR13442(\String?.!.count) // OK
189+
let _: KeyPath<Int?, Int> = \Optional.!
189190
}

0 commit comments

Comments
 (0)