Skip to content

More robust comparison of type constructors in provablyDisjoint #11435

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
Feb 25, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 16, 2021

A type comparison with == should be used only for exploring opportunities to optimize,
never where it affects the logic. I.e. we need to always have a fallback that checks
via =:=.

Fixes #11393

A type comparison with `==` should be used only for exploring opportunities to optimize,
never where it affects the logic. I.e. we need to always have a fallback that checks
via `=:=`.

Fixes scala#11393
@odersky
Copy link
Contributor Author

odersky commented Feb 16, 2021

I think it would be good to convert more match types tests to use separate compilation.

Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a comment

Choose a reason for hiding this comment

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

LGTM

@odersky odersky merged commit 7a1c1c9 into scala:master Feb 25, 2021
@odersky odersky deleted the fix-11393 branch February 25, 2021 09:01
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
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.

Match type compilation is not deterministic
3 participants