Skip to content

Commit f382f40

Browse files
committed
Remove unecessary code
1 parent ca128fd commit f382f40

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import util.{SimpleMap, Property}
1515
import collection.mutable
1616
import ast.tpd._
1717

18-
import scala.annotation.tailrec
19-
2018
trait TypeOps { this: Context => // TODO: Make standalone object.
2119

2220
/** 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.
257255
else tp.baseTypeWithArgs(cls)
258256
base.mapReduceOr(identity)(mergeRefined)
259257
}
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)
262259
}
263260
}
264261
}

0 commit comments

Comments
 (0)