Skip to content

Commit 77c363a

Browse files
committed
Fix top
1 parent 8234c77 commit 77c363a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ class Definitions {
762762

763763
private def topInSameUniverse(types: List[Type], relationship: => String)(implicit ctx: Context): Type = {
764764
types match {
765+
case first :: Nil => first.top
765766
case first :: rest => (first /: rest)(inSameUniverse((t1, _) => t1.topType, _, _, relationship, ctx.owner.pos))
766767
case Nil => defn.AnyType
767768
}

0 commit comments

Comments
 (0)