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

SI-9074 Fix generic substitution with package objects, overloading #4396

Merged
merged 1 commit into from
Mar 24, 2015

Conversation

retronym
Copy link
Member

Takes a leaf out of dotty's book [1] and makes asSeenFrom
transparently change the prefix from the package class to the
package object when needed.

This fixes generic subsitution during overload resolution, as
reported in SI-9074.

This subsumes the former fix for SI-6225, which is removed here.

Resubmission of #4254

[1] scala/scala3#282

@scala-jenkins scala-jenkins added this to the 2.12.0-M1 milestone Mar 24, 2015
Takes a leaf out of dotty's book [1] and makes `asSeenFrom`
transparently change the prefix from the package class to the
package object when needed.

This fixes generic subsitution during overload resolution, as
reported in SI-9074.

This subsumes the former fix for SI-6225, which is removed here.

[1] scala/scala3#282
@lrytz
Copy link
Member

lrytz commented Mar 24, 2015

LGTM

lrytz added a commit that referenced this pull request Mar 24, 2015
SI-9074 Fix generic substitution with package objects, overloading
@lrytz lrytz merged commit 4783a25 into scala:2.12.x Mar 24, 2015
@adriaanm adriaanm added the 2.12 label Oct 29, 2016
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.

4 participants