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
distributedfunc nopeAsyncThrows()asyncthrows->Int{42} // expected-error{{'distributed' function can only be declared within 'distributed actor'}}
32
+
distributedfunc nopeAsyncThrows()asyncthrows->Int{42} // expected-error{{'distributed' method can only be declared within 'distributed actor'}}
33
33
}
34
34
35
35
@available(SwiftStdlib 5.6,*)
36
36
classSomeNotActorClass_3{
37
-
distributedfunc nopeAsyncThrows()asyncthrows->Int{42} // expected-error{{'distributed' function can only be declared within 'distributed actor'}}
37
+
distributedfunc nopeAsyncThrows()asyncthrows->Int{42} // expected-error{{'distributed' method can only be declared within 'distributed actor'}}
38
38
}
39
39
40
40
@available(SwiftStdlib 5.6,*)
41
41
actorSomeNotDistributedActor_4{
42
-
distributedfunc notInDistActorAsyncThrowing()asyncthrows->Int{42} // expected-error{{'distributed' function can only be declared within 'distributed actor'}}
42
+
distributedfunc notInDistActorAsyncThrowing()asyncthrows->Int{42} // expected-error{{'distributed' method can only be declared within 'distributed actor'}}
43
43
}
44
44
45
45
protocolDP{
46
-
distributedfunc hello() // expected-error{{'distributed' function can only be declared within 'distributed actor'}}
46
+
distributedfunc hello() // expected-error{{'distributed' method can only be declared within 'distributed actor'}}
47
47
}
48
48
49
49
@available(SwiftStdlib 5.6,*)
@@ -58,7 +58,7 @@ protocol DPOK2: DPOK {
58
58
59
59
@available(SwiftStdlib 5.6,*)
60
60
enumSomeNotActorEnum_5{
61
-
distributedfunc nopeAsyncThrows()asyncthrows->Int{42} // expected-error{{'distributed' function can only be declared within 'distributed actor'}}
61
+
distributedfunc nopeAsyncThrows()asyncthrows->Int{42} // expected-error{{'distributed' method can only be declared within 'distributed actor'}}
distributedfunc notDistActor() // expected-error{{'distributed' function can only be declared within 'distributed actor'}}{{5-17=}} {{25-25=: DistributedActor}}
14
+
distributedfunc notDistActor() // expected-error{{'distributed' method can only be declared within 'distributed actor'}}{{5-17=}} {{25-25=: DistributedActor}}
0 commit comments