Skip to content

Commit 2d71d91

Browse files
committed
[NFC] Update dispatch test for new preconcurrency annotations.
1 parent 4b09d4c commit 2d71d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Concurrency/dispatch_inference.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ func testMe() {
1717
func testUnsafeSendableInMainAsync() async {
1818
var x = 5
1919
DispatchQueue.main.async {
20-
x = 17 // expected-error{{mutation of captured var 'x' in concurrently-executing code}}
20+
x = 17 // expected-warning{{mutation of captured var 'x' in concurrently-executing code}}
2121
}
2222
print(x)
2323
}
2424

2525
func testUnsafeSendableInAsync(queue: DispatchQueue) async {
2626
var x = 5
2727
queue.async {
28-
x = 17 // expected-error{{mutation of captured var 'x' in concurrently-executing code}}
28+
x = 17 // expected-warning{{mutation of captured var 'x' in concurrently-executing code}}
2929
}
3030

3131
queue.sync {

0 commit comments

Comments
 (0)