new inference: ignore proper types in mutual eq constraints generation

This commit is contained in:
Anna Kozlova
2013-09-23 19:50:40 +04:00
parent 7bc0048fc8
commit fc9a196883
@@ -175,9 +175,11 @@ public class InferenceIncorporationPhase {
for (int i = 0; i < eqBounds.size(); i++) {
PsiType sBound= eqBounds.get(i);
if (sBound == null) continue;
final boolean properType = mySession.isProperType(sBound);
for (int j = i + 1; j < eqBounds.size(); j++) {
final PsiType tBound = eqBounds.get(j);
if (tBound == null) continue;
if (properType && mySession.isProperType(tBound)) continue;
addConstraint(new TypeEqualityConstraint(tBound, sBound));
}
}