File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-emit-module-interface(%t/TestResilient.swiftinterface) %s -module-name TestResilient
3
+ // RUN: %target-swift-typecheck-module-from-interface(%t/TestResilient.swiftinterface) -module-name TestResilient
4
+ // RUN: %FileCheck %s < %t/TestResilient.swiftinterface
5
+ // RUN: %target-swift-frontend -compile-module-from-interface -swift-version 5 %t/TestResilient.swiftinterface -o %t/TestResilient.swiftmodule
6
+ // RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules -swift-version 5 -emit-module-interface-path - %t/TestResilient.swiftmodule -module-name TestResilient | %FileCheck %s
7
+ import Distributed
8
+
9
+ @available ( macOS 13 . 0 , * )
10
+ typealias DefaultDistributedActorSystem = LocalTestingDistributedActorSystem
11
+
12
+ @available ( macOS 13 . 0 , * )
13
+ distributed actor CheckMe {
14
+ distributed func test( ) {
15
+ // ...
16
+ }
17
+
18
+ }
19
+
20
+ // CHECK: public struct HasDistributedActors {
21
+ @available ( macOS 13 . 0 , * )
22
+ public struct HasDistributedActors {
23
+ let check : CheckMe
24
+
25
+ func test( ) async throws {
26
+ try await check. test ( )
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments