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 2f94c3d commit 4f19388Copy full SHA for 4f19388
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -45,8 +45,9 @@ trait SymDenotations { this: Context =>
45
if (denot.is(ValidForever) || denot.isRefinementClass) true
46
else {
47
val initial = denot.initial
48
- if ((initial ne denot) || ctx.phaseId != initial.validFor.firstPhaseId)
49
- ctx.withPhase(initial.validFor.firstPhaseId).stillValidInOwner(initial.asSymDenotation)
+ var firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
+ if ((initial ne denot) || ctx.phaseId != firstPhaseId)
50
+ ctx.withPhase(firstPhaseId).stillValidInOwner(initial.asSymDenotation)
51
else
52
stillValidInOwner(denot)
53
}
0 commit comments