mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lambda: skip wildcards in return types for now
This commit is contained in:
+2
-2
@@ -325,7 +325,7 @@ public class PsiMethodReferenceExpressionImpl extends PsiReferenceExpressionBase
|
||||
final PsiClassType returnType = JavaPsiFacade.getElementFactory(project).createType(containingClass,
|
||||
isRawSubst ? PsiSubstitutor.EMPTY : substitutor);
|
||||
|
||||
substitutor = LambdaUtil.inferFromReturnType(typeParameters, returnType, interfaceMethodReturnType, substitutor, languageLevel,
|
||||
substitutor = LambdaUtil.inferFromReturnType(typeParameters, returnType, GenericsUtil.eliminateWildcards(interfaceMethodReturnType), substitutor, languageLevel,
|
||||
project);
|
||||
|
||||
if (containingClass.getConstructors().length == 0) {
|
||||
@@ -422,7 +422,7 @@ public class PsiMethodReferenceExpressionImpl extends PsiReferenceExpressionBase
|
||||
}
|
||||
return LambdaUtil.inferFromReturnType(method.getTypeParameters(),
|
||||
method.getReturnType(),
|
||||
interfaceMethodReturnType,
|
||||
GenericsUtil.eliminateWildcards(interfaceMethodReturnType),
|
||||
psiSubstitutor,
|
||||
languageLevel, getProject());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user