mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use the `%target-swift-5.X-abi-triple` substitutions to compile the tests for deployment to the minimum OS versions required for the APIs used in the tests, instead of disabling availability checking.
12 lines
460 B
Swift
12 lines
460 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-swift-5.7-abi-triple
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: distributed
|
|
|
|
actor SomeActor { }
|
|
|
|
distributed actor MissingImportDistributedActor_0 { }
|
|
// expected-error@-1{{distributed actor 'MissingImportDistributedActor_0' declared without importing module 'Distributed'}}{{5:1-1=import Distributed\n}}
|
|
|
|
let t: DistributedActorSystem // expected-error{{cannot find type 'DistributedActorSystem' in scope}}
|
|
|