mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] "will be illegal" -> "will be an error" in diagnostics.
"illegal" is an overloaded word and can distress people who aren't familiar with the usage as being illegal with respect to the language definition, not the actual law.
This commit is contained in:
@@ -9,10 +9,10 @@ extension SR7251 {
|
||||
// expected-note@-1 {{previously declared here}}
|
||||
// expected-note@-2 {{previously declared here}}
|
||||
|
||||
struct i {} // expected-warning {{redeclaration of 'i' is deprecated and will be illegal in Swift 5}}
|
||||
typealias i = Int // expected-warning {{redeclaration of 'i' is deprecated and will be illegal in Swift 5}}
|
||||
struct i {} // expected-warning {{redeclaration of 'i' is deprecated and will be an error in Swift 5}}
|
||||
typealias i = Int // expected-warning {{redeclaration of 'i' is deprecated and will be an error in Swift 5}}
|
||||
|
||||
static var j: Int { return 0 } // expected-warning {{redeclaration of 'j' is deprecated and will be illegal in Swift 5}}
|
||||
static var j: Int { return 0 } // expected-warning {{redeclaration of 'j' is deprecated and will be an error in Swift 5}}
|
||||
|
||||
struct k {} // expected-error{{invalid redeclaration of 'k'}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user