Open
Description
Description
Just randomly found this error
Reproduction
@globalActor
public actor SomeActor: GlobalActor {
public static let shared = SomeActor()
}
class IsolationError {
@SomeActor
func test() async { }
}
let error = IsolationError()
Task {
await error.test()
}
Expected behavior
class is not sendable so maybe it should display a proper error message like:
Non-sendable type 'IsolationError' in implicitly asynchronous access to main actor-isolated let 'error' cannot cross actor boundary
Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response