mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
additional testdata for nested lambda inference
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user