mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
lambda: nested lambda return statements exclusion
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
interface I {
|
||||
Integer _();
|
||||
}
|
||||
|
||||
interface I1 {
|
||||
String _();
|
||||
}
|
||||
|
||||
class Test {
|
||||
I i = () -> {
|
||||
I1 i1 = () -> {return "";};
|
||||
return 1;
|
||||
};
|
||||
}
|
||||
+4
@@ -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