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 @@ -15,8 +15,6 @@ import util.{SimpleMap, Property}
15
15
import collection .mutable
16
16
import ast .tpd ._
17
17
18
- import scala .annotation .tailrec
19
-
20
18
trait TypeOps { this : Context => // TODO: Make standalone object.
21
19
22
20
/** The type `tp` as seen from prefix `pre` and owner `cls`. See the spec
@@ -257,8 +255,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
257
255
else tp.baseTypeWithArgs(cls)
258
256
base.mapReduceOr(identity)(mergeRefined)
259
257
}
260
- if (doms.isEmpty) new ErrorType (" no parents in common" ) // This can happen in the union of Any with PhantomAny
261
- else doms.map(baseTp).reduceLeft(AndType .apply)
258
+ doms.map(baseTp).reduceLeft(AndType .apply)
262
259
}
263
260
}
264
261
}
You can’t perform that action at this time.
0 commit comments