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 testImportedGlobals(){ // expected-note{{add '@MainActor' to make global function 'testImportedGlobals()' part of global actor 'MainActor'}}
73
73
let _ =Globals.integerConstant
74
-
let _ =Globals.integerMutable // expected-warning{{reference to static property 'integerMutable' is not concurrency-safe because it involves shared mutable state}}
74
+
let _ =Globals.integerMutable
75
75
let _ =Globals.nonisolatedUnsafeIntegerConstant
76
76
let _ =Globals.nonisolatedUnsafeIntegerMutable
77
77
let _ =Globals.actorInteger // expected-error{{main actor-isolated static property 'actorInteger' can not be referenced from a non-isolated context}}
0 commit comments