mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Un-reverts 9c01ee2c1b.
Also, add myself as a reviewer for more availability related files.
NFC.
14 lines
580 B
Swift
14 lines
580 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-ios13.1-macabi -parse-as-library -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
struct BadStruct {
|
|
@available(macCatalyst 13.1, *)
|
|
@available(iOS, unavailable) // This attribute is inactive so we don't expect a diagnostic
|
|
var availableOnCatalyst: Int
|
|
|
|
@available(macCatalyst, unavailable) // expected-error {{stored properties cannot be marked unavailable with '@available'}}
|
|
@available(iOS 13, *)
|
|
var unavailableOnCatalyst: Int
|
|
}
|