We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38272aa + d08609b commit da0e938Copy full SHA for da0e938
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -137,14 +137,8 @@ object TypeOps:
137
case tp1 => tp1
138
}
139
case tp: TypeParamRef =>
140
- if (tp.paramName.is(DepParamName)) {
141
- val bounds = ctx.typeComparer.bounds(tp)
142
- if (bounds.lo.isRef(defn.NothingClass)) bounds.hi else bounds.lo
143
- }
144
- else {
145
- val tvar = ctx.typerState.constraint.typeVarOfParam(tp)
146
- if (tvar.exists) tvar else tp
147
+ val tvar = ctx.typerState.constraint.typeVarOfParam(tp)
+ if (tvar.exists) tvar else tp
148
case _: ThisType | _: BoundType =>
149
tp
150
case tp: AliasingBounds =>
0 commit comments