invoke equalsOrContainsAsArgument
instead of dependsOnTypeConstructors
This commit is contained in:
+1
-2
@@ -68,8 +68,7 @@ public class ConstraintSystemImpl implements ConstraintSystem {
|
|||||||
TypeParameterDescriptor descriptor = (TypeParameterDescriptor) declarationDescriptor;
|
TypeParameterDescriptor descriptor = (TypeParameterDescriptor) declarationDescriptor;
|
||||||
|
|
||||||
JetType value = ConstraintsUtil.getValue(getTypeConstraints(descriptor));
|
JetType value = ConstraintsUtil.getValue(getTypeConstraints(descriptor));
|
||||||
if (value != null && !TypeUtils.dependsOnTypeConstructors(value, Collections.singleton(
|
if (value != null && !TypeUtils.equalsOrContainsAsArgument(value, DONT_CARE)) {
|
||||||
DONT_CARE.getConstructor()))) {
|
|
||||||
return new TypeProjection(value);
|
return new TypeProjection(value);
|
||||||
}
|
}
|
||||||
if (typeParameterConstraints.containsKey(descriptor)) {
|
if (typeParameterConstraints.containsKey(descriptor)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user