Actor-isolated property wrapper leads to compiling code that crashes at runtime #77604
Labels<
8000
/span>
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
property wrappers
Feature: property wrappers
triage needed
This issue needs more specific labels
Uh oh!
There was an error while loading. Please reload this page.
Description
It is possible to actor isolate the
wrappedValue
of a property wrapper and interact with it in a nonisolated way, leading to a crash.Reproduction
Stack dump
Expected behavior
I expect the line that crashes to not compile with a message such as:
Environment
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: