IDEA-191690 Inline method: less restrictions on tail call

This commit is contained in:
Tagir Valeev
2018-05-10 15:25:13 +07:00
parent 6b9b664629
commit 09bae6cc2b
8 changed files with 148 additions and 22 deletions
@@ -0,0 +1,16 @@
class A {
void foo() {
if(Math.random() > 2) {
System.out.println("xyz");
return;
}
System.out.println("oops");
}
void bar(int x) {
Runnable r = () -> {
System.out.println("hi");
f<caret>oo();
};
}
}