Skip to content

Commit 23d0a49

Browse files
committed
Avoid another source of stale symbol errors in IDE
1 parent a3a9121 commit 23d0a49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,8 @@ object Types {
15381538
else recomputeMember(d) // symbol could have been overridden, recompute membership
15391539
else {
15401540
val newd = loadDenot
1541-
if (newd.exists) newd else d.staleSymbolError
1541+
if (newd.exists || ctx.mode.is(Mode.Interactive)) newd
1542+
else d.staleSymbolError
15421543
}
15431544
case d =>
15441545
if (d.validFor.runId != ctx.period.runId) loadDenot

0 commit comments

Comments
 (0)