Skip to content
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

Fix #9675: Type _ in MT patterns with correct kind #13262

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

OlivierBlanvillain
Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain commented Aug 6, 2021

I'm not sure why this condition in typer was there, but it resulted in an ill kinded program for the added test case. More precisely, the _ in case _ ++: t used to have kind * instead of being higher-kinded, and removing that condition fixes that.

@odersky
Copy link
Contributor

odersky commented Aug 6, 2021

I am not sure either. It might have been a defensive move to minimize the change set.

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Since everything passes it seems the side condition was not needed. LGTM.

@odersky odersky removed their assignment Aug 6, 2021
@odersky odersky merged commit fea778d into scala:master Aug 6, 2021
@odersky odersky deleted the fix-9675 branch August 6, 2021 17:41
@Kordyjan Kordyjan added this to the 3.1.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.

3 participants