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
// expected-error@+2 {{expression is 'async' but is not marked with 'await'}}
123
+
// expected-warning@+2 {{expression is 'async' but is not marked with 'await'}}
120
124
// expected-note@+1 {{property access is 'async'}}
121
125
leta= globalValue // expected-warning{{non-sendable type 'NotConcurrent?' in implicitly asynchronous access to global actor 'SomeGlobalActor'-isolated let 'globalValue' cannot cross actor boundary}}
122
126
awaitglobalAsync(a) // expected-complete-warning{{passing argument of non-sendable type 'NotConcurrent?' into global actor 'SomeGlobalActor'-isolated context may introduce data races}}
123
127
awaitglobalSync(a) // expected-complete-warning{{passing argument of non-sendable type 'NotConcurrent?' into global actor 'SomeGlobalActor'-isolated context may introduce data races}}
128
+
129
+
// expected-warning@+2 {{expression is 'async' but is not marked with 'await'}}
130
+
// expected-note@+1 {{property access is 'async'}}
131
+
let _ =E.notSafe // expected-warning{{non-sendable type 'NotConcurrent?' in implicitly asynchronous access to global actor 'SomeGlobalActor'-isolated static property 'notSafe' cannot cross actor boundary}}
132
+
133
+
// expected-error@+3 {{expression is 'async' but is not marked with 'await'}}
134
+
// expected-note@+2 {{call is 'async'}}
135
+
// expected-note@+1 {{property access is 'async'}}
136
+
globalAsync(E.notSafe)
137
+
// expected-complete-warning@-1 {{passing argument of non-sendable type 'NotConcurrent?' into global actor 'SomeGlobalActor'-isolated context may introduce data races}}
138
+
// expected-warning@-2 {{non-sendable type 'NotConcurrent?' in implicitly asynchronous access to global actor 'SomeGlobalActor'-isolated static property 'notSafe' cannot cross actor boundary}}
// expected-error@+2 {{expression is 'async' but is not marked with 'await'}}
157
+
// expected-warning@+2 {{expression is 'async' but is not marked with 'await'}}
143
158
// expected-note@+1 {{property access is 'async'}}
144
159
leta= globalValue // expected-warning{{non-sendable type 'NotConcurrent?' in implicitly asynchronous access to global actor 'SomeGlobalActor'-isolated let 'globalValue' cannot cross actor boundary}}
145
160
awaitglobalAsync(a) // expected-complete-warning{{passing argument of non-sendable type 'NotConcurrent?' into global actor 'SomeGlobalActor'-isolated context may introduce data races}}
0 commit comments