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-warning@-1{{passing argument of non-sendable type '() -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
293
-
// expected-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
294
+
// expected-complete-warning@-1{{passing argument of non-sendable type '() -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
295
+
// expected-complete-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
// expected-warning@-1 2{{converting function value of type '@BananaActor () -> ()' to '() -> Void' loses global actor 'BananaActor'}}
301
303
302
304
awaitwisk(peelBanana)
303
-
// expected-warning@-1{{passing argument of non-sendable type '() -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
304
-
// expected-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
305
+
// expected-complete-warning@-1{{passing argument of non-sendable type '() -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
306
+
// expected-complete-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
305
307
306
308
awaitwisk(wisk)
307
-
// expected-warning@-1{{passing argument of non-sendable type '(Any) -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
308
-
// expected-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
309
+
// expected-complete-warning@-1{{passing argument of non-sendable type '(Any) -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
310
+
// expected-complete-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
309
311
await(((wisk)))(((wisk)))
310
-
// expected-warning@-1{{passing argument of non-sendable type '(Any) -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
311
-
// expected-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
312
+
// expected-complete-warning@-1{{passing argument of non-sendable type '(Any) -> ()' into global actor 'BananaActor'-isolated context may introduce data races}}
313
+
// expected-complete-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
0 commit comments