Skip to content

Commit

Permalink
Handle NoType in disjointnessBoundary
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Feb 27, 2024
1 parent 3419aae commit 2423198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/src/dotty/tools/dotc/core/TypeComparer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2863,6 +2863,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
disjointnessBoundary(tp.effectiveBounds.hi)
case tp: ErrorType =>
defn.AnyType
case NoType => // ParamRef#superTypeNormalized can return NoType
defn.AnyType
end disjointnessBoundary

(disjointnessBoundary(tp1), disjointnessBoundary(tp2)) match
Expand Down

0 comments on commit 2423198

Please sign in to comment.