Skip to content

Fix #8516: Keep correct parameter names when selecting in refined types #8529

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
Mar 21, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 12, 2020

No description provided.

@odersky odersky requested a review from lrytz March 12, 2020 18:05
@@ -673,10 +673,17 @@ object Types {
pdenot.asSingleDenotation.derivedSingleDenotation(pdenot.symbol, jointInfo)
}
else
pdenot & (
val joint = pdenot & (
Copy link
Member

Choose a reason for hiding this comment

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

I guess there's no good way to handle parameter names when intersecting two method types?

And sorry about the off-topic remark, but I'm a bit surprised to see infix with multiple parameter lists, isn't that an anti-pattern? I see it was discussed on #4311 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we should change the infix part.

@odersky odersky merged commit 4df9b6f into scala:master Mar 21, 2020
@odersky odersky deleted the fix-#8516 branch March 21, 2020 11:32
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