Select non-DeclaredUpperBound for initial when simplifying constraint
This commit is contained in:
committed by
teamcity
parent
91b629d16a
commit
6cf2c6f93a
+2
-1
@@ -73,7 +73,8 @@ class MutableVariableWithConstraints private constructor(
|
|||||||
Constraint(
|
Constraint(
|
||||||
ConstraintKind.EQUALITY,
|
ConstraintKind.EQUALITY,
|
||||||
constraint.type,
|
constraint.type,
|
||||||
constraint.position,
|
constraint.position.takeIf { it.from !is DeclaredUpperBoundConstraintPosition<*> }
|
||||||
|
?: previousConstraint.position,
|
||||||
constraint.typeHashCode,
|
constraint.typeHashCode,
|
||||||
derivedFrom = constraint.derivedFrom,
|
derivedFrom = constraint.derivedFrom,
|
||||||
isNullabilityConstraint = false
|
isNullabilityConstraint = false
|
||||||
|
|||||||
Reference in New Issue
Block a user