mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
22 lines
333 B
Java
22 lines
333 B
Java
class Test {
|
|
enum Foo {
|
|
BAR(<caret>getTwice(() -> {
|
|
return getNum();
|
|
}));
|
|
|
|
Foo(int val) {
|
|
|
|
}
|
|
}
|
|
|
|
static int getNum() {
|
|
return 4;
|
|
}
|
|
|
|
static int getTwice(IntSupplier fn) {
|
|
int x = fn.getAsInt();
|
|
int y = fn.getAsInt();
|
|
return x + y;
|
|
}
|
|
}
|