magnolia
magnolia copied to clipboard
"Internal error: unable to find the outer accessor symbol of ..." when deriving instance for a nested type
Version: 1.12
Reproducer: https://scastie.scala-lang.org/lZwX8BQSThWjL8sEAnSPnw
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]
}
}