We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad56977 commit bccaa50Copy full SHA for bccaa50
test/Concurrency/dispatch_inference.swift
@@ -22,15 +22,15 @@ func testMe() {
22
func testUnsafeSendableInMainAsync() async {
23
var x = 5
24
DispatchQueue.main.async {
25
- 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}}
26
}
27
print(x)
28
29
30
func testUnsafeSendableInAsync(queue: DispatchQueue) async {
31
32
queue.async {
33
34
35
36
queue.sync {
0 commit comments