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
acceptConcurrentClosure{@SomeGlobalActorin5} // expected-warning {{converting function value of type '@SomeGlobalActor @Sendable () -> Int' to '@Sendable () -> Int' loses global actor 'SomeGlobalActor'}}
485
+
486
+
@MainActorfunc test()async{
487
+
letclosure={@MainActor@Sendablein
488
+
MainActor.assertIsolated()
489
+
}
490
+
491
+
awaitcrossIsolationBoundary(closure)
492
+
// expected-warning@-1 {{converting function value of type '@MainActor @Sendable () -> ()' to '() -> Void' loses global actor 'MainActor'; this is an error in the Swift 6 language mode}}
0 commit comments