Skip to content

[AST/Sema] Add @extensible attribute on enum declarations #80503

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

Merged
merged 2 commits into from
Apr 4, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 3, 2025

This attribute controls whether cross-module access to the declaration
needs @unknown default: because it's allowed to gain new cases even
if the module is non-resilient.

The change also temporarily removes ExtensibleEnums experimental
feature.

@xedin
Copy link
Contributor Author

xedin commented Apr 3, 2025

@swift-ci please test

xedin added 2 commits April 3, 2025 16:30
This attribute controls whether cross-module access to the declaration
needs `@unknown default:` because it's allowed to gain new cases even
if the module is non-resilient.
For now the semantics provided by `@extensible` keyword on per-enum
basis. We might return this as an upcoming feature in the future with
a way to opt-out.
@xedin xedin force-pushed the extensible-attr branch from a22de31 to bf19481 Compare April 3, 2025 23:30
@xedin
Copy link
Contributor Author

xedin commented Apr 3, 2025

@swift-ci please test

@xedin xedin merged commit 8bf8c24 into swiftlang:main Apr 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants