ambiguous method calls: conflict resolver, tests

(IDEA-67832; IDEA-67837; IDEA-67573; IDEA-57306;
 IDEA-57535; IDEA-57269; IDEA-57278; IDEA-57317)
This commit is contained in:
anna
2012-04-09 11:57:27 +02:00
parent b43bae19e1
commit d8748bb076
11 changed files with 251 additions and 46 deletions
@@ -216,10 +216,11 @@ public class GenericsUtil {
PsiClassType[] extendsTypes = typeParameter.getExtendsListTypes();
for (PsiClassType type : extendsTypes) {
PsiType extendsType = substitutor.substitute(type);
if (!extendsType.isAssignableFrom(substituted)) {
return false;
if (extendsType.isAssignableFrom(substituted)) {
return true;
}
}
if (extendsTypes.length > 0) return false;
}
return true;