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 1d05796 commit a3a9121Copy full SHA for a3a9121
compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -1305,8 +1305,10 @@ object Trees {
1305
this(this(x, arg), annot)
1306
case Thicket(ts) =>
1307
this(x, ts)
1308
- case _ if ctx.reporter.errorsReported =>
+ 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
1311
+ // are reported, or in subsequent ones.
1312
x
1313
}
1314
0 commit comments