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 d69f680 commit 8f49bb0Copy full SHA for 8f49bb0
compiler/src/dotty/tools/dotc/transform/YCheckPositions.scala
@@ -57,8 +57,8 @@ class YCheckPositions extends Phases.Phase {
57
}
58
59
private def isMacro(call: Tree)(implicit ctx: Context) = {
60
- ((ctx.phase <= ctx.typerPhase.next) && call.symbol.is(Macro)) ||
61
- (!(ctx.phase <= ctx.typerPhase.next) && call.symbol.unforcedDecls.exists(_.is(Macro)) || call.symbol.unforcedDecls.toList.exists(_.is(Macro)))
+ if (ctx.phase <= ctx.typerPhase.next) call.symbol.is(Macro)
+ else (call.symbol.unforcedDecls.exists(_.is(Macro)) || call.symbol.unforcedDecls.toList.exists(_.is(Macro)))
62
63
64
0 commit comments