mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
You'll notice that emitting this diagnostic will make some already noisy closure-related errors slightly more so. This is unfortunate, but for the time-being it's better than crashing. Swift SVN r21817
8 lines
254 B
Swift
8 lines
254 B
Swift
// RUN: %swift %s -parse -verify
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// http://www.openradar.me/17317691
|
|
|
|
func f() {
|
|
({}) // expected-error{{type of expression is ambiguous without more context}}
|
|
}
|