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 @@ -637,12 +637,14 @@ object Denotations {
637
637
var current = symbol.current
638
638
while (current.validFor.firstPhaseId < phase.id && (current.nextInRun.validFor.code > current.validFor.code))
639
639
current = current.nextInRun
640
- while ((current.validFor.firstPhaseId >= phase.id) && (current.nextInRun.validFor.code > current.validFor.code)) {
640
+ var hasNext = true
641
+ while ((current.validFor.firstPhaseId >= phase.id) && hasNext) {
641
642
val current1 : SingleDenotation = f(current.asSymDenotation)
642
643
if (current1 ne current) {
643
644
current1.validFor = current.validFor
644
645
current1.replaceDenotation(current)
645
646
}
647
+ hasNext = current1.nextInRun.validFor.code > current1.validFor.code
646
648
current = current1.nextInRun
647
649
}
648
650
}
You can’t perform that action at this time.
0 commit comments