Unable to Specify @MainActor for a closure with empty parameters #76539
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Unable to specify
@MainActor
for a closure with explicit empty parametersReproduction
The following code does not compile:
Expected behavior
This compiles.
Environment
$ swift --version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: