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

implicit resolution via type alias fails in 2.10.1-RC1 #7180

Closed
scabug opened this issue Feb 25, 2013 · 3 comments
Closed

implicit resolution via type alias fails in 2.10.1-RC1 #7180

scabug opened this issue Feb 25, 2013 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 25, 2013

Implicit resolution fails via a type alias in 2.10.1-RC1 yet works fine in 2.10.0

The following shows the problem:

trait Higher[F[_]]

trait Box[A] 
object Box {
  implicit def HigherBox = new Higher[Box] {}
}
 
object Foo {
  val box = implicitly[Higher[Box]] // compiles fine !!!

  type Bar[A] = Box[A]
  val bar = implicitly[Higher[Bar]] // <-- this doesn't compile in 2.10.1-RC1, but does in 2.10.0 !!!
}
@scabug
Copy link
Author

scabug commented Feb 25, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7180?orig=1
Reporter: Jed Wesley-Smith (jedws)
Affected Versions: 2.10.1-RC1

@scabug
Copy link
Author

scabug commented Feb 25, 2013

@gkossakowski said:
Jason, assigning to you and rising it to blocker as it seems like source-incompatible regression in area you are familiar with.

@scabug
Copy link
Author

scabug commented Feb 25, 2013

@retronym said:
scala/scala#2166

@scabug scabug closed this as completed Feb 25, 2013
@scabug scabug added this to the 2.10.1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants