Motivation
Starting in Swift 6.0, users can set InternalImportsByDefault as an upcoming feature flag, which makes imports internal by default. Then, if they add accessModifier: package/public, the code fails to build.
Proposed solution
There should be some way to get the access modifier added on the imports as well.
One way: put if #compiler(>=6.0) around imports with the access modifier, and #else won't have it. That way we can do it without other feature flags.
Alternatives considered
No response
Additional information
No response
Motivation
Starting in Swift 6.0, users can set
InternalImportsByDefaultas an upcoming feature flag, which makes imports internal by default. Then, if they addaccessModifier: package/public, the code fails to build.Proposed solution
There should be some way to get the access modifier added on the imports as well.
One way: put
if #compiler(>=6.0)around imports with the access modifier, and#elsewon't have it. That way we can do it without other feature flags.Alternatives considered
No response
Additional information
No response