Skip to content

Fix #3422: Add missing case to TypeComparer #3428

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
Dec 11, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 1, 2017

We missed the case where we compare two hk tpes A <: B, where both A and B refer to
classes with type parameters. It seems this case usually does not arise when we compile
from source because A or B or both are eta expanded. But it can arise after unpickling.

We missed the case where we compare two hk tpes A <: B, where both A and B refer to
classes with type parameters. It seems this case usually does not arise when we compile
from source because A or B or both are eta expanded. But it can arise after unpickling.
@odersky odersky requested a review from smarter November 1, 2017 17:27
@odersky
Copy link
Contributor Author

odersky commented Nov 17, 2017

@smarter Ready to merge?

@smarter
Copy link
Member

smarter commented Nov 17, 2017

I'll review it today

@smarter
Copy link
Member

smarter commented Nov 22, 2017

LGTM, although I wonder if we should take a step back and try to fix our higher-kinded subtyping checks in a more systematic way. #2989 is a very similar issue which is still broken after this PR. I have a tentative fix at https://github.com/dotty-staging/dotty/commits/fix-eta-expansion-new but I'm not convinced it's the right thing to do.

@odersky odersky merged commit 6f68143 into scala:master Dec 11, 2017
@allanrenucci allanrenucci deleted the fix-3422 branch December 11, 2017 13:00
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