testdata for IDEA-106670

(cherry picked from commit 78c98d762dd449ff86ea805179b51c2d2b4fc00f)
This commit is contained in:
anna
2013-11-25 16:47:41 +01:00
parent b612209ab9
commit 6086b1725d
2 changed files with 33 additions and 0 deletions
@@ -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;
}
}