Skip to content

Fix #9509: Reveal further arguments in extension method applications #9542

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
Aug 14, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 12, 2020

They were hidden in an IgnroedProto before for fear that we might need an implicit
conversion. But none is possible at this point.

…ions

They were hidden in an IgnroedProto before for fear that we might need an implicit
conversion. But none is possible at this point.
Previously, both `normPt` and `integrateTypeArgs` could tweak the
expected type, this commit merges them together in one `normalizePt`
method which should be slightly more general.

Also updated i9509 to make the invariance of the leaf case explicit (since
we might change the desugaring of enums to preserve the parent variance
by default).
@smarter
Copy link
Member

smarter commented Aug 14, 2020

@odersky I pushed a commit combining the two ways we tweak the expected type for extension methods into one, let me know what you think: 826ffb3

@smarter smarter assigned odersky and unassigned smarter Aug 14, 2020
@odersky
Copy link
Contributor Author

odersky commented Aug 14, 2020

@smarter Yes, that way it's shorter and clearer. 👍

@odersky odersky merged commit 3d70dd2 into scala:master Aug 14, 2020
@odersky odersky deleted the fix-#9509 branch August 14, 2020 16:38
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