mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user