Skip to content

Commit 366707d

Browse files
author
Amritpan Kaur
committed
[Test] Update tests.
1 parent f4764b3 commit 366707d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/expr/unary/keypath/keypath.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,13 +918,12 @@ func testKeyPathHole() {
918918
provideValueButNotRoot(\.x.y) // expected-error {{cannot infer key path type from context; consider explicitly specifying a root type}}
919919
provideValueButNotRoot(\String.foo) // expected-error {{value of type 'String' has no member 'foo'}}
920920

921-
func provideKPValueButNotRoot<T>(_ kp: KeyPath<T, String>) {} // expected-note {{in call to function 'provideKPValueButNotRoot'}}
921+
func provideKPValueButNotRoot<T>(_ kp: KeyPath<T, String>) {}
922922
provideKPValueButNotRoot(\.x) // expected-error {{cannot infer key path type from context; consider explicitly specifying a root type}}
923923
provideKPValueButNotRoot(\.x.y) // expected-error {{cannot infer key path type from context; consider explicitly specifying a root type}}
924924

925925
provideKPValueButNotRoot(\String.foo)
926926
// expected-error@-1 {{value of type 'String' has no member 'foo'}}
927-
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
928927
}
929928

930929
func testMissingMember() {

0 commit comments

Comments
 (0)