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 {
1324
1324
this (this (x, arg), annot)
1325
1325
case Thicket (ts) =>
1326
1326
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.
1328
1329
// In case of errors it may be that typed trees point to untyped ones.
1329
1330
// The IDE can still traverse inside such trees, either in the run where errors
1330
1331
// 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