mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
17 lines
302 B
Java
17 lines
302 B
Java
class Test22 {
|
|
static <U> Iterable<U> map(Mapper<String, U> mapper) {
|
|
return null;
|
|
}
|
|
|
|
static void test() {
|
|
Iterable<Integer> map = map(Test22 ::length);
|
|
}
|
|
|
|
public static <T> int length(String s) {
|
|
return 0;
|
|
}
|
|
}
|
|
interface Mapper<T, U> {
|
|
U map(T t);
|
|
}
|