mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] add note explaining DefaultDistributedActorSystem
This commit is contained in:
16
test/Distributed/distributed_actor_system_missing.swift
Normal file
16
test/Distributed/distributed_actor_system_missing.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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?
|
||||
}
|
||||
Reference in New Issue
Block a user