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
Copy file name to clipboardExpand all lines: test/Concurrency/global_actor_inference.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ actor GenericSuper<T> {
173
173
@GenericGlobalActor<T>func method5(){}
174
174
}
175
175
176
-
actorGenericSub<T>:GenericSuper<[T]>{
176
+
actorGenericSub<T>:GenericSuper<[T]>{ // expected-error{{actor types do not support inheritance}}
177
177
overridefunc method(){} // expected-note {{calls to instance method 'method()' from outside of its actor context are implicitly asynchronous}}
178
178
179
179
@GenericGlobalActor<T>overridefunc method2(){} // expected-error{{global actor 'GenericGlobalActor<T>'-isolated instance method 'method2()' has different actor isolation from global actor 'GenericGlobalActor<[T]>'-isolated overridden declaration}}
0 commit comments