mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda: clear caches after usage; more testdata
This commit is contained in:
+26
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -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(), "");
|
||||
|
||||
Reference in New Issue
Block a user