File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- // RUN: %target-swift-frontend -emit-irgen %s -swift-version 5 -enable-experimental-distributed | %IRGenFileCheck %s
1+
2+ // RUN: %empty-directory(%t)
3+ // RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/Inputs/FakeDistributedActorSystems.swift
4+ // RUN: %target-swift-frontend -emit-irgen -enable-experimental-distributed -disable-availability-checking -I %t 2>&1 %s | %IRGenFileCheck %s
25
36// UNSUPPORTED: back_deploy_concurrency
47// REQUIRES: concurrency
58// REQUIRES: distributed
69
710import _Distributed
11+ import FakeDistributedActorSystems
12+
13+ @available ( SwiftStdlib 5 . 5 , * )
14+ typealias DefaultDistributedActorSystem = FakeActorSystem
815
916enum SimpleE : Codable {
1017case a
@@ -36,8 +43,6 @@ struct LargeStruct : Codable {
3643
3744@available ( SwiftStdlib 5 . 6 , * )
3845public distributed actor MyActor {
39- public typealias Transport = AnyActorTransport
40-
4146 distributed func simple1( _: Int ) {
4247 }
4348
@@ -72,8 +77,6 @@ public distributed actor MyActor {
7277
7378@available ( SwiftStdlib 5 . 6 , * )
7479public distributed actor MyOtherActor {
75- public typealias Transport = AnyActorTransport
76-
7780 distributed func empty( ) {
7881 }
7982}
You can’t perform that action at this time.
0 commit comments