Commit 344cd5da authored by Anna.Kozlova's avatar Anna.Kozlova
Browse files

`var` in lambda parameter list: ensure lambda parameter

parent adf14b7d
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -152,7 +152,7 @@ public class PsiParameterImpl extends JavaStubPsiElement<PsiParameterStub> imple
myCachedType = null;
PsiTypeElement typeElement = getTypeElement();
if (typeElement == null || typeElement.isInferredType()) {
if (typeElement == null || isLambdaParameter() && typeElement.isInferredType()) {
assert isLambdaParameter() : this;
return getLambdaParameterType(this);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment