lambda: nested lambda return statements exclusion

This commit is contained in:
anna
2012-10-15 15:35:58 +02:00
parent 5c798946df
commit e775459321
3 changed files with 22 additions and 0 deletions

View File

@@ -77,6 +77,10 @@ public class PsiLambdaExpressionImpl extends ExpressionPsiElement implements Psi
@Override
public void visitClass(PsiClass aClass) {
}
@Override
public void visitLambdaExpression(PsiLambdaExpression expression) {
}
});
}
return result;

View File

@@ -0,0 +1,14 @@
interface I {
Integer _();
}
interface I1 {
String _();
}
class Test {
I i = () -> {
I1 i1 = () -> {return "";};
return 1;
};
}

View File

@@ -157,6 +157,10 @@ public class LambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testNestedLambdas() throws Exception {
doTest();
}
private void doTest() throws Exception {
doTest(BASE_PATH + "/" + getTestName(false) + ".java", false, false);
}