Skip to content

Fix #7084: Drop revealProtoOfExtMethod #7093

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 4 commits into from
Aug 26, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 23, 2019

Don't call revealProtoOfExtMethod when constraining results in adaptation.
Revealing the prototype too early disables further implicit searches, as is
demonstrated by i7084.scala. The original reason to have revealProtoOfExtMethod
was to typecheck i5773a. But it looks like this is no longer valid. i5773a
now compiles regardless.

Don't call `revealProtoOfExtMethod` wehn constraining results in adaptation.
Revealing the proottype too early disables further implicit searches, as is
demonstrated by i7084.scala. The original reason to have `revealProtoOfExtMethod`
was to typecheck i5773a. But it looks like this is no longer valid. i5773a
now compiles regardless.
We get in both cases a type difference where one side is an unreduced match type
and the other side is its redux.
@anatoliykmetyuk anatoliykmetyuk merged commit 0b0d2f5 into scala:master Aug 26, 2019
@anatoliykmetyuk anatoliykmetyuk deleted the fix-#7084 branch August 26, 2019 11:20
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