Skip to content

[KeyPath] Fix regression in == on keypaths #73347

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 1 commit into from
May 1, 2024

Conversation

kubamracek
Copy link
Contributor

The change in #72472 accidentally commented out an important check inside the implementation of == in AnyKeyPath. This breaks equality of keypaths and they now misreport being equal in some cases when they're not supposed to. The added testcase reproduces the problem.

rdar://127296261

@kubamracek
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@Catfish-Man Catfish-Man left a comment

Choose a reason for hiding this comment

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

Seems good. I assume you've verified that the test does in fact fail without the change?

@kubamracek
Copy link
Contributor Author

Yes, without the fix, the test does fail.

Copy link
Contributor

@Azoy Azoy left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

4 participants