File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,12 @@ trait ConstraintHandling[AbstractContext] {
109
109
val p2 = adjust(tp.tp2)
110
110
if p1.exists && p2.exists then tp.derivedAndOrType(p1, p2) else NoType
111
111
case tp : TypeParamRef =>
112
+ if constraint.contains(tp) then
113
+ constr.println(i " ${if tp eq param then " stripping" else " keeping" } $tp from $rawBound, upper = $isUpper in $constraint" )
112
114
if tp eq param then // (1)
113
- // println(i"stripping $tp from $rawBound, upper = $isUpper in $constraint")
114
115
if isUpper then defn.AnyType else defn.NothingType
115
116
else constraint.entry(tp) match // (3)
117
+ case NoType => tp
116
118
case TypeBounds (lo, hi) => if lo eq hi then adjust(lo) else tp
117
119
case inst => adjust(inst)
118
120
case tp : TypeVar => // (2)
You can’t perform that action at this time.
0 commit comments