disable trivial functional expression for body with returns (IDEA-173436)

This commit is contained in:
Anna Kozlova
2017-05-25 16:06:05 +03:00
parent b11f016947
commit 770ebf45af
2 changed files with 23 additions and 2 deletions
@@ -0,0 +1,12 @@
// "Replace method call on lambda with lambda body" "false"
class Test {
void foo() {
Runnable r = () -> {
if (true) return;
System.out.println("");
};
r.r<caret>un();
System.out.println("");
}
}