File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ object Denotations {
591
591
this
592
592
case _ =>
593
593
if (coveredInterval.containsPhaseId(ctx.phaseId)) {
594
- if (ctx.settings. debug.value ) ctx.traceInvalid(this )
594
+ if (ctx.debug) ctx.traceInvalid(this )
595
595
staleSymbolError
596
596
}
597
597
else NoDenotation
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ trait SymDenotations { this: Context =>
45
45
if (denot.is(ValidForever ) || denot.isRefinementClass) true
46
46
else {
47
47
val initial = denot.initial
48
- var firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
48
+ val firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
49
49
if ((initial ne denot) || ctx.phaseId != firstPhaseId)
50
50
ctx.withPhase(firstPhaseId).stillValidInOwner(initial.asSymDenotation)
51
51
else
@@ -85,9 +85,9 @@ trait SymDenotations { this: Context =>
85
85
else if (! owner.isClass || owner.isRefinementClass || denot.isSelfSym) true
86
86
else if (owner.unforcedDecls.lookupAll(denot.name) contains denot.symbol) true
87
87
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
+ }
91
91
}
92
92
case _ =>
93
93
explain(" denotation is not a SymDenotation" )
You can’t perform that action at this time.
0 commit comments