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.
16 lines
672 B
Swift
16 lines
672 B
Swift
// RUN: %target-typecheck-verify-swift -verify -target %target-cpu-apple-macosx12.0 -module-name SwiftUI -library-level api
|
|
// RUN: not %target-typecheck-verify-swift -verify -target %target-cpu-apple-macosx12.0 -module-name Other -library-level api
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
@available(macOS 11, *)
|
|
public class LessAvailable {}
|
|
|
|
@available(macOS 10.15, *)
|
|
@usableFromInline
|
|
class AnyColorBox: LessAvailable {} // Ok, exception specifically for AnyColorBox
|
|
|
|
@available(macOS 10.15, *)
|
|
@usableFromInline
|
|
class OtherClass: LessAvailable {} // expected-error {{'LessAvailable' is only available in macOS 11 or newer; clients of 'SwiftUI' may have a lower deployment target}}
|