additional testdata for nested lambda inference

This commit is contained in:
Anna Kozlova
2015-11-24 17:12:47 +01:00
parent ca28f5f414
commit 952a9be315
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import java.util.function.*;
class A {
<T extends String> void foo(Function<A, T> f){}
static <O> Object bar(Object o) {
return null;
}
static <K> A bar(A a) {
return null;
}
static <L> L boo(Supplier<L> s) {
return null;
}
<P> P baz() {
return null;
}
{
foo(a -> bar(a).boo(() -> baz()));
}
}