Skip to content

Commit 2423198

Browse files
committed
Handle NoType in disjointnessBoundary
1 parent 3419aae commit 2423198

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,6 +2863,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
28632863
disjointnessBoundary(tp.effectiveBounds.hi)
28642864
case tp: ErrorType =>
28652865
defn.AnyType
2866+
case NoType => // ParamRef#superTypeNormalized can return NoType
2867+
defn.AnyType
28662868
end disjointnessBoundary
28672869

28682870
(disjointnessBoundary(tp1), disjointnessBoundary(tp2)) match

0 commit comments

Comments
 (0)