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
func f(){} // okay, 'f' is MainActor isolated, as is the requirement
169
+
@MainActorfunc g(){} // okay for the same reasons, but more explicitly
170
+
}
171
+
172
+
@SomeGlobalActor
173
+
structS3:InferenceConflict{
174
+
nonisolatedfunc g(){}
175
+
}
176
+
177
+
extensionS3{
178
+
func f(){}
179
+
// expected-error@-1{{global actor 'SomeGlobalActor'-isolated instance method 'f()' cannot be used to satisfy main actor-isolated protocol requirement}}
180
+
//expected-note@-2{{add 'nonisolated' to 'f()' to make this instance method not isolated to the actor}}
0 commit comments