Skip to content

Commit 50a3bbf

Browse files
committed
Remove unecessary code
1 parent a342a51 commit 50a3bbf

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
@@ -16,8 +16,6 @@ import util.{SimpleMap, Property}
1616
import collection.mutable
1717
import ast.tpd._
1818

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

2321
/** 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.
262260
else tp.baseTypeWithArgs(cls)
263261
base.mapReduceOr(identity)(mergeRefined)
264262
}
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)
267264
}
268265
}
269266
}

0 commit comments

Comments
 (0)