Skip to content

Commit 74d81ab

Browse files
committed
Drop redundant code
The dropped lines were added as an intermediate stage before we settled on doing this in addOneBound.
1 parent 788be02 commit 74d81ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,6 @@ trait ConstraintHandling[AbstractContext] {
308308
// from above | hi lo lo
309309
//
310310
if (variance == 0 || fromBelow == (variance < 0)) bounds.lo else bounds.hi
311-
case `param` =>
312-
if variance == 0 || fromBelow == (variance < 0) then defn.AnyType
313-
else defn.NothingType
314311
case _ => tp
315312
}
316313
}

0 commit comments

Comments
 (0)