mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
664 B
Swift
17 lines
664 B
Swift
// RUN: %target-swift-frontend -typecheck -verify -enable-experimental-distributed -disable-availability-checking -I %t 2>&1 %s
|
|
|
|
// UNSUPPORTED: back_deploy_concurrency
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: distributed
|
|
|
|
import _Distributed
|
|
|
|
distributed actor DA {
|
|
// expected-error@-1{{distributed actor 'DA' does not declare ActorSystem it can be used with.}}
|
|
|
|
// expected-note@-3{{you can provide a module-wide default actor system by declaring:}}
|
|
|
|
// Note to add the typealias is diagnosed on the protocol:
|
|
// _Distributed.DistributedActor:3:20: note: diagnostic produced elsewhere: protocol requires nested type 'ActorSystem'; do you want to add it?
|
|
}
|