Skip to content

Sema: Fix required availability diagnostics for protocol extensions #76071

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

Extending a protocol cannot introduce new conformances to other protocols, so skip checking for associated conformances to public protocols when diagnosing required availability on such an extension.

Resolves rdar://133873836.

@tshortli tshortli requested a review from xymus August 24, 2024 01:03
Extending a protocol cannot introduce new conformances to other protocols, so
skip checking for associated conformances to public protocols when diagnosing
required availability on such an extension.

Resolves rdar://133873836.
@tshortli tshortli force-pushed the require-explicit-availability-protocol-extension branch from e98fe20 to 16ac355 Compare August 24, 2024 05:23
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit 06aedde into swiftlang:main Aug 26, 2024
3 checks passed
@tshortli tshortli deleted the require-explicit-availability-protocol-extension branch August 26, 2024 16:28
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