mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Diagnostics] Clarify the wording of error_in_future_swift_version.
This commit is contained in:
@@ -12,7 +12,7 @@ import AppKit
|
||||
// present in the TBD.
|
||||
let globalConstantWithLazyInitializer: String = "hello, world"
|
||||
|
||||
@NSApplicationMain // expected-deprecated-warning {{'NSApplicationMain' is deprecated; this is an error in Swift 6}}
|
||||
@NSApplicationMain // expected-deprecated-warning {{'NSApplicationMain' is deprecated; this is an error in the Swift 6 language mode}}
|
||||
// expected-deprecated-note@-1 {{use @main instead}} {{1-19=@main}}
|
||||
class MyDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user