Skip to content

Fix #3381: handle case of lub and glb of types with different kinds #3385

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
Oct 26, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Oct 25, 2017

When forming the lub and glb of two types with different numbers of type
parameters, this crashed provided neither parameter list was empty. We
now treat this analogous to the case where one of the types is a * type,
by applying both types to their parameter references.

When forming the lub and glb of two types with different numbers of type
parameters, this crashed provided neither parameter list was empty. We
now treat this analogous to the case where one of the types is a * type,
by applying both types to their parameter references.
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!

@OlivierBlanvillain OlivierBlanvillain merged commit 07e4968 into scala:master Oct 26, 2017
@allanrenucci allanrenucci deleted the fix-#3381 branch October 26, 2017 09:59
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