mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
14 lines
223 B
Java
14 lines
223 B
Java
class Main {
|
|
|
|
<R> void bar(Fun<Integer, R> collector) { }
|
|
|
|
<T, D> Fun<T, Integer> foo(D d) { return null; }
|
|
|
|
public void test() {
|
|
bar(foo(""));
|
|
}
|
|
|
|
interface Fun<T, R> {
|
|
R f(T t);
|
|
}
|
|
} |