File tree 1 file changed +3
-1
lines changed
src/dotty/tools/dotc/core 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -639,12 +639,14 @@ object Denotations {
639
639
var current = symbol.current
640
640
while (current.validFor.firstPhaseId < phase.id && (current.nextInRun.validFor.code > current.validFor.code))
641
641
current = current.nextInRun
642
- while ((current.validFor.firstPhaseId >= phase.id) && (current.nextInRun.validFor.code > current.validFor.code)) {
642
+ var hasNext = true
643
+ while ((current.validFor.firstPhaseId >= phase.id) && hasNext) {
643
644
val current1 : SingleDenotation = f(current.asSymDenotation)
644
645
if (current1 ne current) {
645
646
current1.validFor = current.validFor
646
647
current1.replaceDenotation(current)
647
648
}
649
+ hasNext = current1.nextInRun.validFor.code > current1.validFor.code
648
650
current = current1.nextInRun
649
651
}
650
652
}
You can’t perform that action at this time.
0 commit comments