Skip to content

Commit bfd425f

Browse files
Address review
1 parent 08774c8 commit bfd425f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,8 @@ object Trees {
13251325
this(this(x, arg), annot)
13261326
case Thicket(ts) =>
13271327
this(x, ts)
1328-
case _ =>
1328+
case _ if ctx.reporter.errorsReported || ctx.mode.is(Mode.Interactive) =>
1329+
// In interactive mode, errors might come from previous runs.
13291330
// In case of errors it may be that typed trees point to untyped ones.
13301331
// The IDE can still traverse inside such trees, either in the run where errors
13311332
// are reported, or in subsequent ones.

0 commit comments

Comments
 (0)