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 dd1d712 commit 29976d7Copy full SHA for 29976d7
src/dotty/tools/dotc/core/Denotations.scala
@@ -486,7 +486,9 @@ object Denotations {
486
*/
487
private def bringForward()(implicit ctx: Context): SingleDenotation = this match {
488
case denot: SymDenotation if ctx.stillValid(denot) =>
489
- if (denot.exists) assert(ctx.runId > validFor.runId, s"denotation $denot invalid in run ${ctx.runId}. ValidFor: $validFor")
+ if (denot.exists)
490
+ assert(ctx.runId > validFor.runId || ctx.runId == InitialRunId,
491
+ s"denotation $denot invalid in run ${ctx.runId}. ValidFor: $validFor")
492
var d: SingleDenotation = denot
493
do {
494
d.validFor = Period(ctx.period.runId, d.validFor.firstPhaseId, d.validFor.lastPhaseId)
0 commit comments