Skip to content
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

Tests: Test conformance checker with witnesses in unavailable extensions #78872

Conversation

tshortli
Copy link
Contributor

A protocol conformance witness must be as available as its requirement. In Swift 6.1 and earlier, the conformance checker failed to note that witnesses in unavailable extensions are unavailable. That bug was fixed by a previous change, but there was no test case covering it so the difference in behavior was not acknowledged.

Related to rdar://143466010.

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge January 23, 2025 23:19
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

…ons.

A protocol conformance witness must be as available as its requirement. In
Swift 6.1 and earlier, the conformance checker failed to note that witnesses in
unavailable extensions are unavailable. That bug was fixed by a previous
change, but there was no test case covering it so the difference in behavior
was not acknowledged.

Related to rdar://143466010.
@tshortli tshortli force-pushed the unavailable-witness-in-extension-diag-regression-test branch from 221a7a2 to fdcf53c Compare January 24, 2025 05:13
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli
Copy link
Contributor Author

@swift-ci please test Windows

@tshortli tshortli merged commit ddfd583 into swiftlang:main Jan 24, 2025
5 checks passed
@tshortli tshortli deleted the unavailable-witness-in-extension-diag-regression-test branch January 25, 2025 01:53
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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