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
[Concurrency] Always infer actor isolation from overridden declaration.
Infer actor isolation from the overridden declaration unless some other
isolation attribute was explicitly specified directly on that
declaration. This allows type- and extension-level annotations with
a global actor to not break overrides.
overridefunc f(){} // okay: inferred to @GenericGlobalActor<Int>
189
+
190
+
@GenericGlobalActor<String>overridefunc g(){} // expected-error{{global actor 'GenericGlobalActor<String>'-isolated instance method 'g()' has different actor isolation from global actor 'GenericGlobalActor<Int>'-isolated overridden declaration}}
191
+
192
+
overridefunc h(){} // okay: inferred to unspecified
0 commit comments