Skip to content

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

@scabug

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions