Open
Description
Description
The message says "can not be mutated on a nonisolated actor instance" when the mutation is in fact performed on an instance of an isolated struct.
Reproduction
swift/test/Concurrency/nonisolated_access.swift
Lines 41 to 44 in 8ae66ec
Expected behavior
The part of the message at issue is chosen from a list of options:
swift/include/swift/AST/DiagnosticsSema.def
Lines 5475 to 5483 in 8ae66ec
The correct option in this case appears to be "from a nonisolated context".
Environment
Swift version 6.1-dev (Swift 66d4cd1)
Additional information
No response
Metadata
Metadata
Assignees
Labels
Feature → concurrency: Actor isolationA deviation from expected or documented behavior. Also: expected but undesirable behavior.The Swift compiler itselfFeature: umbrella label for concurrency language featuresBug: Diagnostics Quality of ImplementationFlag: An issue whose reproduction requires multiple modulesArea → compiler: Semantic analysis