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 syncMethod(){} // expected-note {{calls to instance method 'syncMethod()' from outside of its actor context are implicitly asynchronous}}
80
+
func syncMethod(){} // expected-note 2{{calls to instance method 'syncMethod()' from outside of its actor context are implicitly asynchronous}}
81
81
82
82
func independentMethod(){
83
83
syncMethod() // expected-error{{ctor-isolated instance method 'syncMethod()' can not be referenced from a non-isolated context}}
@@ -88,7 +88,7 @@ actor MySubclassCheckingSwiftAttributes : ProtocolWithSwiftAttributes {
88
88
}
89
89
90
90
func mainActorMethod(){
91
-
syncMethod()
91
+
syncMethod() // expected-error{{actor-isolated instance method 'syncMethod()' can not be referenced from synchronous context of global actor 'MainActor'}}
0 commit comments