new inference: infer from return value from method ref

This commit is contained in:
anna
2013-10-30 09:09:40 +01:00
parent c61dbfbf69
commit 54b7936e2a
@@ -421,7 +421,7 @@ public class PsiMethodReferenceExpressionImpl extends PsiReferenceExpressionBase
psiSubstitutor = psiSubstitutor.putAll(substitutor);
}
return LambdaUtil.inferFromReturnType(method.getTypeParameters(),
psiSubstitutor.substitute(method.getReturnType()),
method.getReturnType(),
interfaceMethodReturnType,
psiSubstitutor,
languageLevel, getProject());