mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Reword diagnostics to say 'without a type annotation' instead of 'without more context'
This commit is contained in:
@@ -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}}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user