mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix inference for object type arg
This commit is contained in:
+1
-1
@@ -466,7 +466,7 @@ public class PsiResolveHelperImpl implements PsiResolveHelper {
|
||||
if (arg == null ||
|
||||
arg.getDeepComponentType() instanceof PsiPrimitiveType ||
|
||||
arg instanceof PsiIntersectionType ||
|
||||
(psiClass != null && !CommonClassNames.JAVA_LANG_OBJECT.equals(psiClass.getQualifiedName()))) {
|
||||
(psiClass != null && (isContraVariantPosition || !CommonClassNames.JAVA_LANG_OBJECT.equals(psiClass.getQualifiedName())))) {
|
||||
PsiType bound = intersectAllExtends(typeParam, arg);
|
||||
return new Pair<PsiType, ConstraintType>(bound, ConstraintType.SUPERTYPE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user