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 61b8eed commit 72429b2Copy full SHA for 72429b2
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -4980,10 +4980,14 @@ object Types {
4980
4981
case tp: LazyRef =>
4982
LazyRef { c =>
4983
- val saved = mapCtx
4984
- mapCtx = c
4985
- try this(tp.ref(using c))
4986
- finally mapCtx = saved
+ val ref1 = tp.ref(using c)
+ if c.runId == mapCtx.runId then this(ref1)
+ else // splice in new run into map context
+ val saved = mapCtx
4987
+ mapCtx = mapCtx.fresh
4988
+ .setPeriod(Period(c.runId, mapCtx.phaseId))
4989
+ .setRun(c.run)
4990
+ try this(ref1) finally mapCtx = saved
4991
}
4992
4993
case tp: ClassInfo =>
0 commit comments