mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Peer into the types of declarations to find async/actors/etc.
This commit is contained in:
@@ -63,6 +63,16 @@ extension OldSchool: UnsafeConcurrentValue { }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: #endif
|
||||
|
||||
// CHECK: #if compiler(>=5.3) && $AsyncAwait
|
||||
// CHECK-NEXT: func runSomethingSomewhere
|
||||
// CHECK-NEXT: #endif
|
||||
public func runSomethingSomewhere(body: () async -> Void) { }
|
||||
|
||||
// CHECK: #if compiler(>=5.3) && $Actors
|
||||
// CHECK-NEXT: func stage
|
||||
// CHECK-NEXT: #endif
|
||||
public func stage(with actor: MyActor) { }
|
||||
|
||||
// CHECK: #if compiler(>=5.3) && $MarkerProtocol
|
||||
// CHECK-NEXT: extension FeatureTest.MyActor : Swift.ConcurrentValue {}
|
||||
// CHECK-NEXT: #endif
|
||||
|
||||
Reference in New Issue
Block a user