File tree 1 file changed +6
-3
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4178,9 +4178,12 @@ object Types {
4178
4178
myGround > 0
4179
4179
4180
4180
private [Types ] def cachedIsStable (using Context ): Boolean =
4181
- // We need to invalidate the cache when the period changes because the
4182
- // case `TermRef` of `Type#isStable` reads denotations, which depend on
4183
- // the period. See docs/_docs/internals/periods.md for more information.
4181
+ // We need to invalidate the cache when the run changes because the case
4182
+ // `TermRef` of `Type#isStable` reads denotations, which depend on the
4183
+ // run. See docs/_docs/internals/periods.md for more information. We do
4184
+ // not need to check the phase because the `StableRealizable` flag is
4185
+ // computed on completion, and the time before is already covered by
4186
+ // `isProvisional` which always returns true before completion.
4184
4187
if myisStableRunId != ctx.runId then
4185
4188
val res : Boolean = computeIsStable
4186
4189
// We don't cache if the type is provisional because `Type#isStable`
You can’t perform that action at this time.
0 commit comments