File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -918,13 +918,12 @@ func testKeyPathHole() {
918
918
provideValueButNotRoot ( \. x. y) // expected-error {{cannot infer key path type from context; consider explicitly specifying a root type}}
919
919
provideValueButNotRoot ( \String . foo) // expected-error {{value of type 'String' has no member 'foo'}}
920
920
921
- func provideKPValueButNotRoot< T> ( _ kp: KeyPath < T , String > ) { } // expected-note {{in call to function 'provideKPValueButNotRoot'}}
921
+ func provideKPValueButNotRoot< T> ( _ kp: KeyPath < T , String > ) { }
922
922
provideKPValueButNotRoot ( \. x) // expected-error {{cannot infer key path type from context; consider explicitly specifying a root type}}
923
923
provideKPValueButNotRoot ( \. x. y) // expected-error {{cannot infer key path type from context; consider explicitly specifying a root type}}
924
924
925
925
provideKPValueButNotRoot ( \String . foo)
926
926
// expected-error@-1 {{value of type 'String' has no member 'foo'}}
927
- // expected-error@-2 {{generic parameter 'T' could not be inferred}}
928
927
}
929
928
930
929
func testMissingMember( ) {
You can’t perform that action at this time.
0 commit comments