lambda: clear caches after usage; more testdata

This commit is contained in:
anna
2013-02-13 15:57:24 +01:00
parent f452f64f7e
commit 7e6e59724e
4 changed files with 76 additions and 27 deletions
@@ -0,0 +1,26 @@
import java.util.*;
class Main {
void test(List<Integer> li) {
foo(li, s -> s.substr(0), Collections.emptyList());
foo1(li, s -> s.substr(0), Collections.emptyList());
}
<It extends Iterable<U>, T, U> Collection<U> foo(Collection<T> coll, Fun<Stream<T>, Stream<U>> f, It it) {
return null;
}
<T, It extends Iterable<U>, U> Collection<U> foo1(Collection<T> coll, Fun<Stream<T>, Stream<U>> f, It it) {
return null;
}
interface Stream<T> {
Stream<T> substr(long startingOffset);
}
interface Fun<T, R> {
R _(T t);
}
}
@@ -9,7 +9,10 @@ class Main {
public static <B extends C, A, C> void bar3(B b, A a) {}
static {
bar0(foo(), "");
bar0("", foo());
bar("", foo());
bar(foo(), "");
bar1(foo(), "");
bar2(foo(), "");