mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
24 lines
401 B
Java
24 lines
401 B
Java
public class FooBar {
|
|
static final class B<caret>ar {
|
|
private Bar() {
|
|
}
|
|
}
|
|
|
|
private interface I<T> {
|
|
T create();
|
|
}
|
|
|
|
static void foo(I intf) {}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
foo(Bar::new);
|
|
}
|
|
}
|
|
|
|
class FooBarBaz {
|
|
public static void main(String[] args) throws Exception {
|
|
foo(FooBar.Bar::new);
|
|
}
|
|
}
|