File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,10 @@ object Denotations {
611
611
val current = symbol.current
612
612
// println(s"installing $this after $phase/${phase.id}, valid = ${current.validFor}")
613
613
// printPeriods(current)
614
- this .nextInRun = current.nextInRun
614
+ if (current.nextInRun ne current)
615
+ this .nextInRun = current.nextInRun
616
+ else
617
+ this .nextInRun = this
615
618
this .validFor = Period (ctx.runId, targetId, current.validFor.lastPhaseId)
616
619
if (current.validFor.firstPhaseId == targetId) {
617
620
// replace current with this denotation
@@ -622,6 +625,7 @@ object Denotations {
622
625
} else {
623
626
// insert this denotation after current
624
627
current.validFor = Period (ctx.runId, current.validFor.firstPhaseId, targetId - 1 )
628
+ this .nextInRun = current.nextInRun
625
629
current.nextInRun = this
626
630
}
627
631
// printPeriods(this)
You can’t perform that action at this time.
0 commit comments