- 
                Notifications
    You must be signed in to change notification settings 
- Fork 21
Open
Labels
dependent typesenhancementfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)infer
Milestone
Description
https://gist.github.com/2943283
class Indirection[T](implicit val c: CompanionProvider[T]) {
  def indirect: c.CompanionT = c.provide
}
// error: value foo is not a member of _1.c.CompanionT
new Indirection[Foo].indirect.foothis doesn't work because new Indirection[Foo]: Indirection[Foo],
i.e., there's no information about the implicit value that was inferred for c in the type of the target of the selection of indirect
Metadata
Metadata
Assignees
Labels
dependent typesenhancementfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)infer