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 spurious shadowing for higher-order implicits #2739

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 12, 2017

If x had implicit function type, the previous algorithm did not
realize that x and x.apply(y) were the same reference. Therefore,
a spurious shadowing error occurred and the implicit search failed.

If `x` had implicit function type, the previous algorithm did not
realize that `x` and `x.apply(y)` were the same reference. Therefore,
a spurious shadowing error occurred and the implicit search failed.
The previously failing test is ho-implicits.scala. Two more tests are for various other aspects of the implicit calculus work.
@odersky odersky requested a review from liufengyun June 12, 2017 16:47
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@odersky odersky merged commit 1d56bb1 into scala:master Jun 13, 2017
@allanrenucci allanrenucci deleted the fix-ho-implicits branch December 14, 2017 19: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