diff --git a/compiler/src/dotty/tools/dotc/core/Types.scala b/compiler/src/dotty/tools/dotc/core/Types.scala index 4869375d8c94..4fd879eb05d8 100644 --- a/compiler/src/dotty/tools/dotc/core/Types.scala +++ b/compiler/src/dotty/tools/dotc/core/Types.scala @@ -2459,6 +2459,7 @@ object Types extends TypeUtils { if (sym.isValidInCurrentRun) sym else denot.symbol case name => (if (denotationIsCurrent) lastDenotation.asInstanceOf[Denotation] else denot).symbol + if checkedPeriod.code != NowhereCode then checkedPeriod = ctx.period result /** There is a denotation computed which is valid (somewhere in) the