new inference: take first equals bound

This commit is contained in:
anna
2013-10-02 17:18:42 +02:00
parent b8f2889778
commit a4eba6128f
@@ -408,6 +408,7 @@ public class InferenceSession {
for (PsiType eqBound : eqBounds) {
if (eqBound == null) continue;
bound = acceptBoundsWithRecursiveDependencies(typeParameter, eqBound);
if (bound != null) break;
}
if (bound != null) {
if (bound instanceof PsiCapturedWildcardType && eqBounds.size() > 1) {