File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ import util.{SimpleMap, Property}
16
16
import collection .mutable
17
17
import ast .tpd ._
18
18
19
- import scala .annotation .tailrec
20
-
21
19
trait TypeOps { this : Context => // TODO: Make standalone object.
22
20
23
21
/** The type `tp` as seen from prefix `pre` and owner `cls`. See the spec
@@ -262,8 +260,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
262
260
else tp.baseTypeWithArgs(cls)
263
261
base.mapReduceOr(identity)(mergeRefined)
264
262
}
265
- if (doms.isEmpty) new ErrorType (" no parents in common" ) // This can happen in the union of Any with PhantomAny
266
- else doms.map(baseTp).reduceLeft(AndType .apply)
263
+ doms.map(baseTp).reduceLeft(AndType .apply)
267
264
}
268
265
}
269
266
}
You can’t perform that action at this time.
0 commit comments