Complete strict concurrency checking fails to catch MainActor isolated init in an enum with associated value #76867
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Reproduction
Expected behavior
The compiler should show a clear error message on where exactly the issue is, but it doesn't, it only shows an ambiguous error message
On a more complicated projects, the error shows up on each and every file.
Removing .init() compiles successfully, Also marking GestureType as @mainactor doesn't help
Environment
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
The text was updated successfully, but these errors were encountered: