#isolation within a lazy var initializer should evaluate to the instance's static isolation #79060
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
I've discovered that
#isolation
always returns nil for lazy var initializers. Today, all of these printnil
.Reproduction
Expected behavior
I think the static isolation should always be knowable in the actor and global actor situations, shouldn't it?
Environment
Apple Swift version 6.1-dev (LLVM a321a98f4e5b06a, Swift 7a0a6e7)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: