We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For parsed case classes this code is correct:
scala> val q"{ case class $_(..$_) extends ..$_ {..$_}; ..$_ }" = q"{ case class A() }"
But typechecked tree can't be matched:
scala> val q"{ case class $_(..$_) extends ..$_ {..$_}; ..$_ }" = toolbox.typecheck(q"{ case class A() }") scala.MatchError: { case class A extends AnyRef with Product with Serializable { def <init>(): A = { A.super.<init>(); () }; ... }; <synthetic> object A extends scala.runtime.AbstractFunction0[A] with Serializable { ... } (of class scala.reflect.internal.Trees$Block) ... 32 elided
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8312?orig=1 Reporter: @VladimirNik Affected Versions: 2.11.0-M8
Sorry, something went wrong.
closing all quasiquotes tickets; see #10755
No branches or pull requests
For parsed case classes this code is correct:
But typechecked tree can't be matched:
The text was updated successfully, but these errors were encountered: