Skip to content

Commit 834f135

Browse files
committed
Be more defensive when recomputing denotations
We don't know a priori that `current` will give us a denotation that is valid for the current period.
1 parent 5e6278e commit 834f135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ object Symbols {
426426
private def recomputeDenot(lastd: SymDenotation, now: Period)(implicit ctx: Context): SymDenotation = {
427427
val newd = lastd.current.asInstanceOf[SymDenotation]
428428
lastDenot = newd
429-
checkedPeriod = now
429+
checkedPeriod = Nowhere
430430
newd
431431
}
432432

0 commit comments

Comments
 (0)