mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 03:20:56 +07:00
24 lines
421 B
Plaintext
24 lines
421 B
Plaintext
class Test {
|
|
enum Foo {
|
|
BAR(new Object() {
|
|
int evaluate() {
|
|
IntSupplier fn = () -> {
|
|
return getNum();
|
|
};
|
|
int x = fn.getAsInt();
|
|
int y = fn.getAsInt();
|
|
return x + y;
|
|
}
|
|
}.evaluate());
|
|
|
|
Foo(int val) {
|
|
|
|
}
|
|
}
|
|
|
|
static int getNum() {
|
|
return 4;
|
|
}
|
|
|
|
}
|