Skip to content

Commit 93e98aa

Browse files
committed
Fix test I broke by mistake.
1 parent 4c7e13d commit 93e98aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Concurrency/sendnonsendable_basic.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ extension Actor {
265265

266266
await transferToMain(closure) // expected-sns-note {{access here could race}}
267267
// 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'}}
270270
}
271271

272272
// In this case, we reinit along both paths, but only one has an actor derived

0 commit comments

Comments
 (0)