-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the frozen
keyword only to enums with the public
or package
modifiers
#595
Add the frozen
keyword only to enums with the public
or package
modifiers
#595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you!
@swift-server-bot test this please |
@swift-server-bot test this please |
For the 5.9 and 5.9.0 pipelines, we're running into the deprecation warning being escalated to an error. We already disabled warnings-as-errors on most other pipelines, please also comment out this line in the two files for 5.9 and 5.9.0, then the CI should pass.
|
@swift-server-bot test this please |
Motivation
As reported in #586, using Xcode 16 Beta 3, the generated Type.swift file now shows multiple warnings due to the
@frozen
attribute being applied to non-public enums.Modifications
In order to resolve the above issue, I have modified the code to annotate the
@frozen
keyword only onenum
with thepublic
orpackage
modifiers.Result
No warnings are issued when the
@frozen
keyword is annotated on enums with thepublic
orpackage
modifiers.