Avatar
Avatar
kntk
@swift-main @MainActor func doSomething() async { await withUnsafeContinuation { continuation in if #available(macOS 14.0, *) { MainActor.shared.assertIsolated() } continuation.resume(returning: ()) } } await Task.detached { await doSomething() }.value
swiftNightly BOT 3/24/2024 5:33 AM
exit status: 132 with main/<stdin>:5: Fatal error: Incorrect actor executor assumption; Expected 'UnownedSerialExecutor(executor: (Opaque Value))' executor. #0 0x0000558634074067 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x7a71067) #1 0x0000558634071dbe llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x7a6edbe)
4.08 KB