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
_ =await ext.point // expected-warning {{non-sendable type 'Point' in implicitly asynchronous access to main actor-isolated property 'point' cannot cross actor boundary}}
148
+
_ =await formance.counter
149
+
_ =await anno.point // expected-warning {{non-sendable type 'Point' in implicitly asynchronous access to global actor 'SomeGlobalActor'-isolated property 'point' cannot cross actor boundary}}
150
+
_ = anno.counter
151
+
152
+
// these will always need an await
153
+
_ =await(formance asMainCounter).counter
154
+
_ =awaitext[1]
155
+
_ =await formance.ticker
156
+
_ =await ext.polygon // expected-warning {{non-sendable type '[Point]' in implicitly asynchronous access to main actor-isolated property 'polygon' cannot cross actor boundary}}
157
+
_ =awaitInferredFromContext.stuff
158
+
_ =awaitNoGlobalActorValueType.polygon // expected-warning {{non-sendable type '[Point]' in implicitly asynchronous access to main actor-isolated static property 'polygon' cannot cross actor boundary}}
159
+
}
160
+
161
+
// check for instance members that do not need global-actor protection
162
+
structNoGlobalActorValueType{
163
+
@SomeGlobalActorvarpoint:Point // expected-warning {{stored property 'point' within struct cannot have a global actor; this is an error in Swift 6}}
164
+
165
+
@MainActorletcounter:Int // expected-warning {{stored property 'counter' within struct cannot have a global actor; this is an error in Swift 6}}
0 commit comments