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.
21 lines
459 B
Swift
21 lines
459 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
// This test is meant to verify that a @MainActor constraint is accepted without
|
|
// any availability restrictions for all targets.
|
|
|
|
@MainActor
|
|
struct AlwaysAvailable {}
|
|
|
|
@preconcurrency @MainActor
|
|
struct AlwaysAvailableUnsafe {}
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
@MainActor
|
|
struct AvailableSwift5_1 {}
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
@preconcurrency @MainActor
|
|
struct AvailableSwift5_1Unsafe {}
|