Skip to content

GADTs: consider singletons when checking invariant refinement #12397

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 10, 2021

Conversation

abgruszecki
Copy link
Contributor

We need to consider singleton types as well when checking for invariant refinement.

Fixes #12390.

@odersky odersky assigned abgruszecki and unassigned odersky May 10, 2021
@abgruszecki abgruszecki enabled auto-merge May 10, 2021 11:51
@abgruszecki abgruszecki merged commit 96b91d4 into scala:master May 10, 2021
@abgruszecki abgruszecki deleted the fix/i12390 branch May 10, 2021 11:58
@Kordyjan Kordyjan added this to the 3.0.1 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.

Compiler cannot unify types of a GADT
3 participants