Closed
Description
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]]
}