invoke equalsOrContainsAsArgument

instead of dependsOnTypeConstructors
This commit is contained in:
Svetlana Isakova
2013-03-06 12:49:24 +04:00
parent 87592e5141
commit 12d8a90b3e
@@ -68,8 +68,7 @@ public class ConstraintSystemImpl implements ConstraintSystem {
TypeParameterDescriptor descriptor = (TypeParameterDescriptor) declarationDescriptor;
JetType value = ConstraintsUtil.getValue(getTypeConstraints(descriptor));
if (value != null && !TypeUtils.dependsOnTypeConstructors(value, Collections.singleton(
DONT_CARE.getConstructor()))) {
if (value != null && !TypeUtils.equalsOrContainsAsArgument(value, DONT_CARE)) {
return new TypeProjection(value);
}
if (typeParameterConstraints.containsKey(descriptor)) {