You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task{ // expected-warning {{passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure}}
528
+
{ // expected-note {{closure captures 'x' which is accessible to code in the current task}}
529
+
print($0)
530
+
}(x)
531
+
}
532
+
527
533
takeClosure{ // expected-warning {{passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure}}
528
534
print(x) // expected-note {{closure captures 'x' which is accessible to code in the current task}}
0 commit comments