Sema: Reword diagnostics to say 'without a type annotation' instead of 'without more context'

This commit is contained in:
Slava Pestov
2023-06-09 10:14:12 -04:00
parent 9991468e4a
commit 1957bd6065
33 changed files with 60 additions and 60 deletions

View File

@@ -297,7 +297,7 @@ func r18800223(_ i : Int) {
}
// <rdar://problem/21883806> Bogus "'_' can only appear in a pattern or on the left side of an assignment" is back
_ = { $0 } // expected-error {{unable to infer type of a closure parameter '$0' in the current context}}
_ = { $0 } // expected-error {{cannot infer type of closure parameter '$0' without a type annotation}}