Skip to content

Sema: Loosen more available than enclosing extension diagnostic #79122

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

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Feb 3, 2025

When diagnosing a declaration that is more available than its context, to preserve source compatibility we need to downgrade the diagnostic to a warning when the outermost declaration is an extension. This logic regressed with #77950 and my earlier attempt to fix this (#78832) misidentified what had regressed.

Really resolves rdar://143423070.

When diagnosing a declaration that is more available than its context, to
preserve source compatibility we need to downgrade the diagnostic to a warning
when the outermost declaration is an extension. This logic regressed with
swiftlang#77950 and my earlier attempt to fix
this (swiftlang#78832) misidentified what had
regressed.

Really resolves rdar://143423070.
@tshortli
Copy link
Contributor Author

tshortli commented Feb 4, 2025

@swift-ci please test macOS

@tshortli tshortli merged commit 8534f29 into swiftlang:main Feb 5, 2025
5 checks passed
@tshortli tshortli deleted the loosen-more-available-than-enclosing-extension branch February 5, 2025 01:33
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.

1 participant