We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3419aae commit 2423198Copy full SHA for 2423198
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2863,6 +2863,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
2863
disjointnessBoundary(tp.effectiveBounds.hi)
2864
case tp: ErrorType =>
2865
defn.AnyType
2866
+ case NoType => // ParamRef#superTypeNormalized can return NoType
2867
+ defn.AnyType
2868
end disjointnessBoundary
2869
2870
(disjointnessBoundary(tp1), disjointnessBoundary(tp2)) match
0 commit comments