Macro changes semantics based on how you refer to a type located in an object
after a seemingly innocent quote match
#16636
Labels
Milestone
Compiler version
3.2.1, 3.3.0-RC1-bin-20230106-d49c2d9-NIGHTLY
Minimized code
Output
Expectation
An additional (irrefutable?) quote match shouldn't change the semantics of the macro and the way you refer to a type located in an
object
shouldn't matter.If you change the implementation of
getTransformerMacro
to not include the additional pattern match:both of the usages compile properly.
Context
This issue was brought up by one of the users of ducktape here: arainko/ducktape#26, which was subsequently fixed here: arainko/ducktape#27
The text was updated successfully, but these errors were encountered: