-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
accepts invalidBug: Accepts invalidBug: Accepts invalidactor isolationFeature → concurrency: Actor isolationFeature → concurrency: Actor isolationattributesFeature: Declaration and type attributesFeature: Declaration and type attributesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresswift 6.1type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
Description
The following strange code compiles incorrectly:
Reproduction
Task { @MainActor(今日は日差しが強い) in
}
Expected behavior
It should result in some kind of error.
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
Metadata
Metadata
Assignees
Labels
accepts invalidBug: Accepts invalidBug: Accepts invalidactor isolationFeature → concurrency: Actor isolationFeature → concurrency: Actor isolationattributesFeature: Declaration and type attributesFeature: Declaration and type attributesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresswift 6.1type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis