mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
lambda: nested lambda return statements exclusion
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
interface I {
|
||||
Integer _();
|
||||
}
|
||||
|
||||
interface I1 {
|
||||
String _();
|
||||
}
|
||||
|
||||
class Test {
|
||||
I i = () -> {
|
||||
I1 i1 = () -> {return "";};
|
||||
return 1;
|
||||
};
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user