upickle
upickle copied to clipboard
Doesn't work well with custom `apply` on case class
Exception occurred while executing macro expansion.
scala.quoted.runtime.impl.ExprCastException:
Expected type: chester.syntax.core.Intersection
Actual type: chester.syntax.core.Term
Expression: chester.syntax.core.Intersection.apply(params.apply(0).asInstanceOf[scala.collection.immutable.Vector[chester.syntax.core.Term]])
I am having
case class Intersection(xs: Vector[Term]) extends Term derives ReadWriter {
...
}
object Intersection {
def apply(xs: Vector[Term]): Term = ...