Skip to content

Commit bccaa50

Browse files
hborlashahmishal
authored andcommitted
[NFC] Update dispatch test for new preconcurrency annotations.
(cherry picked from commit 2d71d91)
1 parent ad56977 commit bccaa50

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
@@ -22,15 +22,15 @@ func testMe() {
2222
func testUnsafeSendableInMainAsync() async {
2323
var x = 5
2424
DispatchQueue.main.async {
25-
x = 17 // expected-error{{mutation of captured var 'x' in concurrently-executing code}}
25+
x = 17 // expected-warning{{mutation of captured var 'x' in concurrently-executing code}}
2626
}
2727
print(x)
2828
}
2929

3030
func testUnsafeSendableInAsync(queue: DispatchQueue) async {
3131
var x = 5
3232
queue.async {
33-
x = 17 // expected-error{{mutation of captured var 'x' in concurrently-executing code}}
33+
x = 17 // expected-warning{{mutation of captured var 'x' in concurrently-executing code}}
3434
}
3535

3636
queue.sync {

0 commit comments

Comments
 (0)