First, a brief description. It seems that if I put the implicit for some other type in the companion object and import it into the scope of the class, it will not be found during implicit resolution until it is explicitly specified once (or defined above the class). An example is below.
class A(val a: Something) object A { implicit val default = ...
I kind of assume that at the moment I found a compiler error, so I will open jira against Scala, but at the same time I am wondering if anyone knows if this is expected, or if you already have an open error?
edit: https://issues.scala-lang.org/browse/SI-7830
edit2: Deleted an ad of type ": A" from all the actual and default values ββto correctly recreate my problem.
source share