Skip to content

Commit b9430cb

Browse files
authored
Update compiler/src/dotty/tools/dotc/core/TypeComparer.scala
1 parent 9c80a7c commit b9430cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
25292529
if isSuperOf(sub) then NoType else tp
25302530
end dropIfSuper
25312531

2532+
/** If some (|-operand of) `tp` is a subtype of `sup` replace it with `NoType`. */
25322533
private def dropIfSub(tp: Type, sup: Type, canConstrain: Boolean): Type =
25332534

25342535
def isSubOf(sup: Type): Boolean = sup match

0 commit comments

Comments
 (0)