mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
testdata for IDEA-106670
(cherry picked from commit 78c98d762dd449ff86ea805179b51c2d2b4fc00f)
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
interface BiFunction<T, U, R> {
|
||||
R apply(T t, U u);
|
||||
}
|
||||
|
||||
interface Stream<SSS> {
|
||||
}
|
||||
|
||||
public void test(Stream<String> range1, Stream<String> range2) {
|
||||
zip(range1, range2, (f, s) -> asList(f, s));
|
||||
zip(range1, range2, Test::asList);
|
||||
|
||||
BiFunction<? super String, ? super String, ?> asList = Arrays::asList;
|
||||
zip(range1, range2, asList);
|
||||
}
|
||||
|
||||
public static <T> List<T> asList(T... a) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static <A, B, C> Stream<C> zip(Stream<? extends A> a,
|
||||
Stream<? extends B> b,
|
||||
BiFunction<? super A, ? super B, ? extends C> zipper) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user