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 ebfa025 commit 4868e41Copy full SHA for 4868e41
compiler/src/dotty/tools/dotc/transform/PCPCheckAndHeal.scala
@@ -151,7 +151,7 @@ class PCPCheckAndHeal(@constructorOnly ictx: Context) extends TreeMapWithStages(
151
case prefix: TermRef if tp.symbol.isSplice =>
152
// Heal explice type splice in the code
153
if level > 0 then getQuoteTypeTags.getTagRef(prefix) else tp
154
- case prefix: TermRef if !prefix.symbol.isStatic && level != levelOf(prefix.symbol) =>
+ case prefix: TermRef if !prefix.symbol.isStatic && level > levelOf(prefix.symbol) =>
155
tryHeal(tp.symbol, tp, pos)
156
case _ =>
157
mapOver(tp)
0 commit comments