fix isDenotable context

This commit is contained in:
Roman.Ivanov
2018-05-30 11:01:19 +07:00
parent 47b637e4d2
commit 8e065410f3
@@ -315,7 +315,7 @@ public class LambdaRefactoringUtil {
for (int i = 0; i < parameters.length; i++) {
PsiType psiType = substitutor.substitute(parameters[i].getType());
if (psiType == null) return null;
if (!PsiTypesUtil.isDenotableType(psiType, interfaceMethod)) {
if (!PsiTypesUtil.isDenotableType(psiType, lambdaExpression)) {
return null;
}