mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
13 lines
223 B
Java
13 lines
223 B
Java
|
|
import java.util.function.Function;
|
|
|
|
class MyTest {
|
|
|
|
static <T, R, F extends Function<T, R>> F from(F fun1) {
|
|
return fun1;
|
|
}
|
|
|
|
void test2() {
|
|
Function<Object, Integer> ext = from(x -> 1);
|
|
}
|
|
} |