Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/ExactReferencesToArrayCreation.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){}
}