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.
2 parents 2f94916 + 2ebf138 commit a23ae50Copy full SHA for a23ae50
compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala
@@ -630,7 +630,8 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
630
transform(tp)
631
}
632
633
- override protected def mayChange(sym: Symbol)(implicit ctx: Context): Boolean = sym.is(Macro)
+ override protected def mayChange(sym: Symbol)(implicit ctx: Context): Boolean =
634
+ ctx.compilationUnit.containsQuotesOrSplices && sym.isTerm && sym.is(Macro)
635
636
/** Returns the type of the compiled macro as a lambda: Seq[Any] => Object */
637
private def macroReturnType(implicit ctx: Context): Type =
0 commit comments