Skip to content

Fix #6734: Suppress interpolation for extension methods #6780

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 3 commits into from
Jul 2, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 1, 2019

Suppress interpolation in the middle of an ExtMethodApply. The reason is that
the ExtMethodApply has a WildcardType, which hides information about bound type
variables in the result type.

Suppress interpolation in the middle of an ExtMethodApply. The reason is that
the ExtMethodApply has a WildcardType, which hides information about bound type
variables in the result type.
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

I would push this check up the stack in simplify, where we already have some similar checks before calling interpolateTypeVars: https://github.com/lampepfl/dotty/blob/33666e9f66dc61ff3868a2132db55a72f39d4d27/compiler/src/dotty/tools/dotc/typer/Typer.scala#L2209-L2213

@odersky odersky merged commit 721f609 into scala:master Jul 2, 2019
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