We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b09d4c commit 2d71d91Copy full SHA for 2d71d91
test/Concurrency/dispatch_inference.swift
@@ -17,15 +17,15 @@ func testMe() {
17
func testUnsafeSendableInMainAsync() async {
18
var x = 5
19
DispatchQueue.main.async {
20
- x = 17 // expected-error{{mutation of captured var 'x' in concurrently-executing code}}
+ x = 17 // expected-warning{{mutation of captured var 'x' in concurrently-executing code}}
21
}
22
print(x)
23
24
25
func testUnsafeSendableInAsync(queue: DispatchQueue) async {
26
27
queue.async {
28
29
30
31
queue.sync {
0 commit comments