Avatar
@swift-5.5.3 -Xfrontend -parse-as-library import Foundation @main struct Main { static func nonIsolatedFunc() async { print(Thread.isMainThread) } @MainActor static func mainIsolatedFunc() async { await nonIsolatedFunc() } static func main() async { await Task { await mainIsolatedFunc() }.value } }