From a4eba6128fcace8c7f3be3a3d157bb747f02568c Mon Sep 17 00:00:00 2001 From: anna Date: Wed, 2 Oct 2013 12:47:02 +0200 Subject: [PATCH] new inference: take first equals bound --- .../psi/impl/source/resolve/graphInference/InferenceSession.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/InferenceSession.java b/java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/InferenceSession.java index 985894debe01..d4668ced0049 100644 --- a/java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/InferenceSession.java +++ b/java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/InferenceSession.java @@ -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) {