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 08774c8 commit bfd425fCopy full SHA for bfd425f
compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -1325,7 +1325,8 @@ object Trees {
1325
this(this(x, arg), annot)
1326
case Thicket(ts) =>
1327
this(x, ts)
1328
- case _ =>
+ case _ if ctx.reporter.errorsReported || ctx.mode.is(Mode.Interactive) =>
1329
+ // In interactive mode, errors might come from previous runs.
1330
// In case of errors it may be that typed trees point to untyped ones.
1331
// The IDE can still traverse inside such trees, either in the run where errors
1332
// are reported, or in subsequent ones.
0 commit comments