blob: 1fe14f680abe446f4203a9f03f45d10ee5ad0a62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class Test {
interface I1 {String m();}
interface I2 {void m();}
void call(I1 p) { }
void call(I2 p) { }
void test() {
call(() -> { throw new RuntimeException(); });
call(() -> { if (true) return ""; throw new RuntimeException(); });
call(() -> { if (true) return; throw new RuntimeException(); });
}
}
|