Unable to target specific declarations using @preconcurrency import #74518
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
Description
I'd like to be able to narrowly target a preconcurrency import. I think this is desirable, because I still want to have other unsafe stuff from the import checked more closely.
Right now, the compiler accepts this code, but seems to apply
@preconcurrency
to the module as a whole.Reproduction
Expected behavior
Apply to only this imported var.
Environment
Apple Swift version 6.0-dev (LLVM 6e13b8be259f20f, Swift 372de46)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: