Skip to content

Fix #8933: Fix eta expansion when comparing hk types #8944

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 2 commits into from
May 11, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 11, 2020

No description provided.

odersky added 2 commits May 11, 2020 11:35
We previously implemented a rule that A.this <: B.this if A and B are
mutually superclasses of the other's self type. We now apply that rule
only if A.this and B.this occur as prefixes in a comparison like

    A.this.T <:< B.this.T

And we document why that choice was made.
@nicolasstucki nicolasstucki linked an issue May 11, 2020 that may be closed by this pull request
@odersky odersky merged commit 06941b2 into scala:master May 11, 2020
@odersky odersky deleted the fix-#8933 branch May 11, 2020 19:34
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.

Incorrect type error in a diamond class hierarchy
2 participants