You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"only 'distributed' functions can be called from outside the distributed actor",
4442
4442
())
4443
4443
ERROR(distributed_actor_isolated_method,none,
4444
-
"only 'distributed' functions can be called from outside the distributed actor", // TODO: more like 'non-distributed' ... defined here
4444
+
"only 'distributed' functions can be called from outside the distributed actor", // TODO: improve error message to be more like 'non-distributed' ... defined here
distributedstructStructNope{} // expected-error{{distributed' modifier cannot be applied to this declaration}}
9
+
@available(SwiftStdlib 5.5,*)
10
+
distributedclassClassNope{} // expected-error{{'distributed' can only be applied to 'actor' definitions, and distributed actor-isolated async functions}}
11
+
@available(SwiftStdlib 5.5,*)
12
+
distributedenumEnumNope{} // expected-error{{distributed' modifier cannot be applied to this declaration}}
13
+
14
+
@available(SwiftStdlib 5.5,*)
15
+
distributedactorDA{
16
+
17
+
classfunc classFunc(){
18
+
// expected-error@-1{{class methods are only allowed within classes; use 'static' to declare a static method}}
0 commit comments