mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
24 lines
346 B
Java
24 lines
346 B
Java
import java.util.function.*;
|
|
class A {
|
|
<T extends String> void foo(Function<A, T> f){}
|
|
|
|
static <O> Object bar(Object o) {
|
|
return null;
|
|
}
|
|
|
|
static <K> A bar(A a) {
|
|
return null;
|
|
}
|
|
|
|
static <L> L boo(Supplier<L> s) {
|
|
return null;
|
|
}
|
|
|
|
<P> P baz() {
|
|
return null;
|
|
}
|
|
|
|
{
|
|
foo(a -> bar(a).boo(() -> baz()));
|
|
}
|
|
} |