Avatar
Avatar
kntk
@swift-main @swift-5.10.1 @swift-6.0.3 @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 (edited)
swift510 BOT 4/10/2024 3:01 PM
exit status: 132 with main/<stdin>:5: Fatal error: Incorrect actor executor assumption; Expected 'UnownedSerialExecutor(executor: (Opaque Value))' executor. #0 0x000055b122f77623 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x61b7623) #1 0x000055b122f755de llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x61b55de) (edited)
4.08 KB