-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.good first issueGood for newcomersGood for newcomerskind/enhancementImprovements to existing feature.Improvements to existing feature.
Description
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
Metadata
Metadata
Assignees
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.good first issueGood for newcomersGood for newcomerskind/enhancementImprovements to existing feature.Improvements to existing feature.