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
Copy file name to clipboardExpand all lines: test/Concurrency/sendnonsendable_basic.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -265,8 +265,8 @@ extension Actor {
265
265
266
266
await transferToMain(closure) // expected-sns-note {{access here could race}}
267
267
// expected-sns-warning @-1 {{call site passes `self` or a non-sendable argument of this function to another thread, potentially yielding a race with the caller}}
268
-
// expected-complete-warning @-1 {{passing argument of non-sendable type '() -> ()' into main actor-isolated context may introduce data races}}
269
-
// expected-complete-note @-2 {{a function type must be marked '@Sendable' to conform to 'Sendable'}}
268
+
// expected-complete-warning @-2 {{passing argument of non-sendable type '() -> ()' into main actor-isolated context may introduce data races}}
269
+
// expected-complete-note @-3 {{a function type must be marked '@Sendable' to conform to 'Sendable'}}
270
270
}
271
271
272
272
// In this case, we reinit along both paths, but only one has an actor derived
0 commit comments