Avatar
Avatar
omochimetaru
@swift-main func foo(actor: isolated MainActor) { gui() } @MainActor func gui() {}
swiftNightly BOT 11/22/2023 4:52 AM
exit status: 1 with <stdin>:2:3: error: call to main actor-isolated global function 'gui()' in a synchronous actor-isolated context gui() ^ <stdin>:5:6: note: calls to global function 'gui()' from outside of its actor context are implicitly asynchronous func gui() {} ^