mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lambda param type: get rid of non-substituted types
This commit is contained in:
@@ -69,12 +69,7 @@ public class PsiParameterImpl extends JavaStubPsiElement<PsiParameterStub> imple
|
||||
final PsiLambdaExpression lambdaExpression = PsiTreeUtil.getParentOfType(param, PsiLambdaExpression.class);
|
||||
if (lambdaExpression != null) {
|
||||
|
||||
PsiType type = LambdaUtil.getFunctionalInterfaceType(lambdaExpression, true);
|
||||
if (type == null) {
|
||||
type = LambdaUtil.getFunctionalInterfaceType(lambdaExpression, false);
|
||||
}
|
||||
|
||||
type = FunctionalInterfaceParameterizationUtil.getGroundTargetType(type, lambdaExpression);
|
||||
PsiType type = FunctionalInterfaceParameterizationUtil.getGroundTargetType(LambdaUtil.getFunctionalInterfaceType(lambdaExpression, true), lambdaExpression);
|
||||
if (type instanceof PsiIntersectionType) {
|
||||
final PsiType[] conjuncts = ((PsiIntersectionType)type).getConjuncts();
|
||||
for (PsiType conjunct : conjuncts) {
|
||||
|
||||
Reference in New Issue
Block a user