Copying of function application with default parameter in macro cause an error with -Xcheck-macro. (regression) #17445
Labels
area:metaprogramming:reflection
Issues related to the quotes reflection API
itype:bug
needs-sip
A SIP needs to be raised to move this issue/PR along.
Compiler version
3.1.1-RC1-bin-SNAPSHOT. (master at May. 9.2023)
Minimized code
Macro.scala:
X.scala:
Output
When compiling with -Xcheck-macros
Expectation
It should be compiled.
After a short investigation, I have discovered that in TreeChecker, we seek for existence of SimpleName for indexWhere$default$2
when
decl.members
of the appropriate symbol contains DerivedNameThe text was updated successfully, but these errors were encountered: