File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1324,7 +1324,8 @@ object Trees {
13241324 this (this (x, arg), annot)
13251325 case Thicket (ts) =>
13261326 this (x, ts)
1327- case _ if ctx.mode.is(Mode .Interactive ) =>
1327+ case _ if ctx.reporter.errorsReported || ctx.mode.is(Mode .Interactive ) =>
1328+ // In interactive mode, errors might come from previous runs.
13281329 // In case of errors it may be that typed trees point to untyped ones.
13291330 // The IDE can still traverse inside such trees, either in the run where errors
13301331 // are reported, or in subsequent ones.
Original file line number Diff line number Diff line change 1+ object Test {
2+ type &: [H , T ] = Int
3+ val a : F [Int ] { type X = Int &: String } = ??? // error
4+ }
You can’t perform that action at this time.
0 commit comments