mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
17 lines
291 B
Java
17 lines
291 B
Java
public class FooBar {
|
|
private static final class Bar2 {
|
|
private Bar2() {
|
|
}
|
|
}
|
|
|
|
private interface I<T> {
|
|
T create();
|
|
}
|
|
|
|
static void foo(I intf) {}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
foo(() -> new Bar2());
|
|
}
|
|
} |