File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1306,8 +1306,8 @@ object Trees {
13061306 case Thicket (ts) =>
13071307 this (x, ts)
13081308 case _ if ctx.mode.is(Mode .Interactive ) =>
1309- // in case of errors it may be that typed trees point to untyped ones.
1310- // The can still traverse inside such trees, either in the run where errors
1309+ // In case of errors it may be that typed trees point to untyped ones.
1310+ // The IDE can still traverse inside such trees, either in the run where errors
13111311 // are reported, or in subsequent ones.
13121312 x
13131313 }
Original file line number Diff line number Diff 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 || ctx.mode.is(Mode .Interactive )) newd
1541+ if (newd.exists) newd
1542+ else if (ctx.mode.is(Mode .Interactive )) d
15421543 else d.staleSymbolError
15431544 }
15441545 case d =>
You can’t perform that action at this time.
0 commit comments