Skip to content

Commit 8718d46

Browse files
committed
Merge pull request #527 from smarter/enable/strip-tvars-test
Enable test strip-tvars-for-lubbasetypes.scala and disable debug message
2 parents bb6582b + 8708fb9 commit 8718d46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ trait ConstraintHandling {
191191
val lower = constraint.lower(param)
192192
val upper = constraint.upper(param)
193193
if (lower.nonEmpty && !bounds.lo.isRef(defn.NothingClass) ||
194-
upper.nonEmpty && !bounds.hi.isRef(defn.AnyClass)) println(i"INIT*** $pt")
194+
upper.nonEmpty && !bounds.hi.isRef(defn.AnyClass)) constr.println(i"INIT*** $pt")
195195
lower.forall(addOneBound(_, bounds.hi, isUpper = true)) &&
196196
upper.forall(addOneBound(_, bounds.lo, isUpper = false))
197197
}

tests/pending/pos/strip-tvars-for-lubbasetypes.scala renamed to tests/pos/strip-tvars-for-lubbasetypes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
object Test {
22

33
implicit final class EqualOps[T](val x: T) extends AnyVal {
4-
def ===[T1, Ph >: T <: T1, Ph2 >: Ph <: T1](other: T1): Boolean = x == other
5-
def !!![T1, Ph2 >: Ph <: T1, Ph >: T <: T1](other: T1): Boolean = x == other
4+
def ===[T1 >: T, Ph >: T <: T1, Ph2 >: Ph <: T1](other: T1): Boolean = x == other
5+
def !!![T1 >: T, Ph2 >: Ph <: T1, Ph >: T <: T1](other: T1): Boolean = x == other
66
}
77

88
class A

0 commit comments

Comments
 (0)