Skip to content

Commit 2f29912

Browse files
authored
Merge pull request #9371 from rudkx/fix-keypath-test
Fix keypath test.
2 parents adccb52 + f4debf8 commit 2f29912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/expr/unary/keypath/keypath.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ func testKeyPath(sub: Sub, optSub: OptSub, x: Int) {
111111

112112
// FIXME should resolve: expected-error@+1{{}}
113113
let _: KeyPath<A, Prop> = \.optProperty!
114-
// FIXME should resolve: expected-error@+1{{}}
115-
let _: KeyPath<A, Prop?> = \.property[optSub]?.optProperty![sub]
114+
let _: KeyPath<A, Prop?> = \.property[optSub]?.optProperty!
115+
let _: KeyPath<A, A?> = \.property[optSub]?.optProperty![sub]
116116

117117
// FIXME crash let _: PartialKeyPath<C<A>> = \.value
118118
let _: KeyPath<C<A>, A> = \.value

0 commit comments

Comments
 (0)