Don't add a constraint T <: DONT_CARE from upper bounds
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ public class ConstraintSystemImpl : ConstraintSystem {
|
||||
for (declaredUpperBound in typeVariable.getUpperBounds()) {
|
||||
if (KotlinBuiltIns.getInstance().getNullableAnyType() == declaredUpperBound) continue //todo remove this line (?)
|
||||
val substitutedBound = constantSubstitutor?.substitute(declaredUpperBound, Variance.INVARIANT)
|
||||
if (substitutedBound != null) {
|
||||
if (substitutedBound != null && !isErrorOrSpecialType(substitutedBound)) {
|
||||
typeBounds.addBound(UPPER_BOUND, substitutedBound, TYPE_BOUND_POSITION.position(typeVariable.getIndex()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user