mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
14 lines
412 B
Java
14 lines
412 B
Java
class InspectorTest {
|
|
interface Stream<T> {
|
|
<A> A[] toArray(IntFunction<A[]> generator);
|
|
}
|
|
interface IntFunction<R> {
|
|
R apply(int value);
|
|
}
|
|
|
|
public static void main(Stream<Object> objectStream){
|
|
varargMethod(String[]::new,
|
|
objectStream.toArray(String[]::new));
|
|
}
|
|
public static <T> void varargMethod(IntFunction<T[]> generator,T[]... a){}
|
|
} |