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
staticletimmutableNonsendableGlobal=TestNonsendable() // expected-warning{{static property 'immutableNonsendableGlobal' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor}}
52
-
staticnonisolated(unsafe)let immutableNonisolatedUnsafeGlobal =TestNonsendable() // expected-error{{unexpected code '(unsafe)' in variable}}
staticnonisolatedletimmutableNonisolatedGlobal=TestNonsendable() // expected-warning{{static property 'immutableNonisolatedGlobal' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor}}
53
53
staticletimmutableInferredSendable=0
54
54
staticvarmutable=0 // expected-warning{{static property 'mutable' is not concurrency-safe because it is non-isolated global shared mutable state}}
55
55
// expected-note@-1{{isolate 'mutable' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'}}
0 commit comments