Skip to content

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

Closed

Description

@scabug

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 !!!
}

Activity

  1. scabug commented on Feb 25, 2013

    @scabug
    Author

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

  2. scabug commented on Feb 25, 2013

    @scabug
    Author

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

  3. scabug commented on Feb 25, 2013

    @scabug
    Author
  4. added this to the 2.10.1 milestone on Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions