Skip to content

Implicit view not found involving an uninstantiated type variable #3343

Closed
@allanrenucci

Description

@allanrenucci

This fails to compile with Dotty

class Test {
  implicit def implicitContainer[C[_], T](
    implicit t: C[T] => Traversable[T]): C[T] = ???

  implicitly[List[Char]]
}
-- Error: tests/allan/Test.scala:5:24 ------------------------------------------
5 |  implicitly[List[Char]]
  |                        ^
  |no implicit argument of type scala.collection.immutable.List[Char] found for parameter e of method implicitly in object Predef

Note that this compiles:

class Test {
  implicitly[List[Char] => Traversable[Char]]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions