mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
return statements inside lambda: extract method return type fixed (IDEA-133095)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
interface I {
|
||||
String foo();
|
||||
}
|
||||
public void foo(int ii) {
|
||||
I r = () -> {
|
||||
<selection>return "42";</selection>
|
||||
};
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
class Test {
|
||||
interface I {
|
||||
String foo();
|
||||
}
|
||||
public void foo(int ii) {
|
||||
I r = () -> {
|
||||
return newMethod();
|
||||
};
|
||||
}
|
||||
|
||||
private String newMethod() {
|
||||
return "42";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user