Skip to content

Commit 41079cd

Browse files
committed
Adress reviewer comments
1 parent 203dfaa commit 41079cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ object Denotations {
591591
this
592592
case _ =>
593593
if (coveredInterval.containsPhaseId(ctx.phaseId)) {
594-
if (ctx.settings.debug.value) ctx.traceInvalid(this)
594+
if (ctx.debug) ctx.traceInvalid(this)
595595
staleSymbolError
596596
}
597597
else NoDenotation

src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ trait SymDenotations { this: Context =>
4545
if (denot.is(ValidForever) || denot.isRefinementClass) true
4646
else {
4747
val initial = denot.initial
48-
var firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
48+
val firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
4949
if ((initial ne denot) || ctx.phaseId != firstPhaseId)
5050
ctx.withPhase(firstPhaseId).stillValidInOwner(initial.asSymDenotation)
5151
else
@@ -85,9 +85,9 @@ trait SymDenotations { this: Context =>
8585
else if (!owner.isClass || owner.isRefinementClass || denot.isSelfSym) true
8686
else if (owner.unforcedDecls.lookupAll(denot.name) contains denot.symbol) true
8787
else explainSym(s"decls of ${show(owner)} are ${owner.unforcedDecls.lookupAll(denot.name).toList}, do not contain ${denot.symbol}")
88-
} catch {
89-
case ex: StaleSymbol => explainSym(s"$ex was thrown")
90-
}
88+
} catch {
89+
case ex: StaleSymbol => explainSym(s"$ex was thrown")
90+
}
9191
}
9292
case _ =>
9393
explain("denotation is not a SymDenotation")

0 commit comments

Comments
 (0)