Open notxcain opened 1 year ago
Seems to be a problem with a combination of classes defined in traits + default field values
Yes, but it works if you put derivation inside the companion.
trait X {
case class F(i: Int = 5)
object F {
implicit def tc: TC[F] = TC.derive[F]
}
}
Version: 1.12
Reproducer: https://scastie.scala-lang.org/lZwX8BQSThWjL8sEAnSPnw