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
// expected-targeted-and-complete-warning@-1 {{passing argument of non-sendable type 'NonSendable' outside of main actor-isolated context may introduce data races}}
307
308
}
309
+
310
+
@available(SwiftStdlib 5.1,*)
311
+
func testLocalCaptures(){
312
+
letns=NonSendable()
313
+
314
+
@Sendablefunc a2()->NonSendable{
315
+
return ns
316
+
// expected-complete-and-sns-warning@-1 {{capture of 'ns' with non-sendable type 'NonSendable' in a `@Sendable` local function}}
0 commit comments