Some
in a macro reflect-based unapply method can crash the compiler
#19362
Labels
area:erasure
area:metaprogramming:reflection
Issues related to the quotes reflection API
itype:bug
itype:crash
Compiler version
3.3.1, 3.4.0-RC1-bin-20231223-938d405-NIGHTLY (and presumably other)
Minimized code
UnapplyErrorMain.scala
UnapplyErrorMacro.scala
Output (click arrow to expand)
Notes:
Some
that is causing the issues.-Xcheck-macros
gives no additional hintsSome
in a quoted expression it compiles (and when converting thatExpr
to aTerm
and back), but we cannot match the representation of thatTerm
exactly, as we cannot insertUnapply
intoTyped
(asTyped
requires aTerm
, andUnapply
isn't that)The text was updated successfully, but these errors were encountered: