Skip to content

Doesn't work well with custom apply on case class #624

@mio-19

Description

@mio-19
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 = ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions