We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b50e376 commit 6cf9c66Copy full SHA for 6cf9c66
compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala
@@ -330,6 +330,8 @@ class ReifyQuotes extends MacroTransform {
330
case _: Import =>
331
tree
332
case tree: DefDef if tree.symbol.is(Macro) =>
333
+ val tree1 = nested(isQuote = true).transform(tree)
334
+ // check macro code as it if appeared in a quoted context
335
cpy.DefDef(tree)(rhs = EmptyTree)
336
case _ =>
337
markDef(tree)
0 commit comments