mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
a1716fe2a6
Fixes rdar://problem/62375243.
6 lines
123 B
Swift
6 lines
123 B
Swift
func use(_ x: Int) {}
|
|
func test() {
|
|
use(a!)
|
|
use(b) // expected-error {{cannot find 'b' in scope; did you mean 'a'?}}
|
|
}
|