aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala2
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 0f32d7ff3..b52c11201 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -591,7 +591,7 @@ object Denotations {
this
case _ =>
if (coveredInterval.containsPhaseId(ctx.phaseId)) {
- if (ctx.settings.debug.value) ctx.traceInvalid(this)
+ if (ctx.debug) ctx.traceInvalid(this)
staleSymbolError
}
else NoDenotation
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 0235c5048..705e1a4fa 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -45,7 +45,7 @@ trait SymDenotations { this: Context =>
if (denot.is(ValidForever) || denot.isRefinementClass) true
else {
val initial = denot.initial
- var firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
+ val firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
if ((initial ne denot) || ctx.phaseId != firstPhaseId)
ctx.withPhase(firstPhaseId).stillValidInOwner(initial.asSymDenotation)
else
@@ -85,9 +85,9 @@ trait SymDenotations { this: Context =>
else if (!owner.isClass || owner.isRefinementClass || denot.isSelfSym) true
else if (owner.unforcedDecls.lookupAll(denot.name) contains denot.symbol) true
else explainSym(s"decls of ${show(owner)} are ${owner.unforcedDecls.lookupAll(denot.name).toList}, do not contain ${denot.symbol}")
- } catch {
- case ex: StaleSymbol => explainSym(s"$ex was thrown")
- }
+ } catch {
+ case ex: StaleSymbol => explainSym(s"$ex was thrown")
+ }
}
case _ =>
explain("denotation is not a SymDenotation")