mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
19 lines
234 B
Java
19 lines
234 B
Java
class Foo {
|
|
public void foo() {
|
|
String s = foo(new I<>() {
|
|
public String m() {
|
|
return null;
|
|
}
|
|
});
|
|
}
|
|
|
|
static <T> T foo(I<T> action) {
|
|
return null;
|
|
}
|
|
|
|
interface I<T> {
|
|
T m();
|
|
}
|
|
|
|
}
|