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 9c80a7c commit b9430cbCopy full SHA for b9430cb
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2529,6 +2529,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
2529
if isSuperOf(sub) then NoType else tp
2530
end dropIfSuper
2531
2532
+ /** If some (|-operand of) `tp` is a subtype of `sup` replace it with `NoType`. */
2533
private def dropIfSub(tp: Type, sup: Type, canConstrain: Boolean): Type =
2534
2535
def isSubOf(sup: Type): Boolean = sup match
0 commit comments