mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Filter out any duplicate notes to help cut down on the noise for request cycle diagnostics. Some of the note locations here still aren't great, but this at least stops us from repeating them for each intermediate request.
13 lines
448 B
Swift
13 lines
448 B
Swift
// RUN: %target-typecheck-verify-swift -localization-path %S/Inputs -locale en
|
|
|
|
_ = "HI!
|
|
// expected-error@-1{{unterminated string literal}}
|
|
var self1 = self1
|
|
// expected-note@-1 {{through reference here}}
|
|
// expected-error@-2 {{circular reference}}
|
|
|
|
struct Broken {
|
|
var b : Bool = True // expected-error{{cannot find 'True' in scope}}
|
|
}
|
|
var v1 : Int[1 // expected-error {{expected ']' in array type}} expected-note {{to match this opening '['}}
|