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
// Make sure inference of @MainActor on wrappedValue doesn't crash.
338
338
339
+
// expected-note@+1 {{mutation of this property is only permitted within the actor}}
339
340
publicvarwrappedValue:Wrapped
340
341
341
342
publicvaraccessCount:Int
342
343
343
344
nonisolatedpublicinit(wrappedValue:Wrapped){
345
+
// expected-warning@+1 {{main actor-isolated property 'wrappedValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode}}
0 commit comments