Skip to content

Commit eadfa6a

Browse files
committed
Fix to bringforward.
Always bring forward in initial phase. Fixes a stale symbol error discovered when compiling most parts of dotc when turning erasure on by default.
1 parent b41732c commit eadfa6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Periods._
1313
import Flags._
1414
import DenotTransformers._
1515
import Decorators._
16-
import transform.Erasure
16+
import dotc.transform.Erasure
1717
import printing.Texts._
1818
import printing.Printer
1919
import io.AbstractFile
@@ -495,7 +495,7 @@ object Denotations {
495495
d.validFor = Period(ctx.period.runId, d.validFor.firstPhaseId, d.validFor.lastPhaseId)
496496
d = d.nextInRun
497497
} while (d ne denot)
498-
initial.syncWithParents
498+
syncWithParents
499499
case _ =>
500500
if (coveredInterval.containsPhaseId(ctx.phaseId)) staleSymbolError
501501
else NoDenotation
@@ -524,7 +524,7 @@ object Denotations {
524524
assert(false)
525525
}
526526

527-
if (valid.runId != currentPeriod.runId) bringForward.current
527+
if (valid.runId != currentPeriod.runId) initial.bringForward.current
528528
else {
529529
var cur = this
530530
if (currentPeriod.code > valid.code) {

0 commit comments

Comments
 (0)