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 7d01268 commit 2ebf138Copy full SHA for 2ebf138
compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala
@@ -620,7 +620,8 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
620
transform(tp)
621
}
622
623
- override protected def mayChange(sym: Symbol)(implicit ctx: Context): Boolean = sym.is(Macro)
+ override protected def mayChange(sym: Symbol)(implicit ctx: Context): Boolean =
624
+ ctx.compilationUnit.containsQuotesOrSplices && sym.isTerm && sym.is(Macro)
625
626
/** Returns the type of the compiled macro as a lambda: Seq[Any] => Object */
627
private def macroReturnType(implicit ctx: Context): Type =
0 commit comments