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
// expected-note@-1{{mark the protocol requirement 'local()' 'async throws' in order witness it with 'distributed' function declared in distributed actor 'DAD'}}
15
16
func localAsync()async
17
+
// expected-note@-1{{mark the protocol requirement 'localAsync()' 'throws' in order witness it with 'distributed' function declared in distributed actor 'DAD'}}
16
18
func localThrows()throws
19
+
// expected-note@-1{{mark the protocol requirement 'localThrows()' 'async' in order witness it with 'distributed' function declared in distributed actor 'DAD'}}
17
20
func localAsyncThrows()asyncthrows
18
21
}
19
22
@@ -56,6 +59,21 @@ distributed actor DAL: LocalProto {
56
59
// expected-error@-1{{actor-isolated instance method 'localAsyncThrows()' cannot be used to satisfy a protocol requirement}}
57
60
}
58
61
62
+
distributedactorDAD:LocalProto{
63
+
distributedfunc local(){}
64
+
// expected-error@-1{{distributed actor-isolated distributed method 'local()' cannot be used to satisfy a protocol requirement}}
65
+
// expected-note@-2{{add 'nonisolated' to 'local()' to make this distributed method not isolated to the actor}}
66
+
67
+
distributedfunc localAsync()async{}
68
+
// expected-error@-1{{distributed actor-isolated distributed method 'localAsync()' cannot be used to satisfy a protocol requirement}}
69
+
70
+
distributedfunc localThrows()throws{}
71
+
// expected-error@-1{{distributed actor-isolated distributed method 'localThrows()' cannot be used to satisfy a protocol requirement}}
72
+
// expected-note@-2{{add 'nonisolated' to 'localThrows()' to make this distributed method not isolated to the actor}}
0 commit comments