Skip to content

Add missing comparison cases for new builtin types#6208

Merged
aryairani merged 3 commits into
trunkfrom
topic/comparison-cases
Mar 29, 2026
Merged

Add missing comparison cases for new builtin types#6208
aryairani merged 3 commits into
trunkfrom
topic/comparison-cases

Conversation

@dolio

@dolio dolio commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

This PR fixes errors that would occur if you tried to use equality or comparison on a few builtin types.

The implementation is a big diagonal list of all the cases with a catch-all for the off diagonal, so unfortunately there are no automatic complaints when new cases are added. Maybe there's some way to catch these better, but for the time being I've just added the missing cases.

Fixes #6201

@dolio dolio requested review from aryairani and pchiusano March 27, 2026 20:49
@dolio dolio requested a review from a team as a code owner March 27, 2026 20:49

@pchiusano pchiusano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks fine though is it easy enough to add regression test?

@aryairani aryairani added this pull request to the merge queue Mar 29, 2026
Merged via the queue into trunk with commit ba95ae5 Mar 29, 2026
10 checks passed
@aryairani aryairani deleted the topic/comparison-cases branch March 29, 2026 22:18
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.

FFI.Type is not comparable

3 participants