Debian Codegraph @

framework/tests/all-systems/java8inference/Issue1715.java

raw
1 import java.util.List;
2 import java.util.function.Function;
3
4 public class Issue1715 {
5
6 static final class A {
7
8 public A() {}
9
10 public Object foo(Object o) {
11 return o;
12 }
13 }
14
15 private Observable<List<Function<Object, Object>>> test(A a) {
16 return Observable.just(ImmutableList.of(a::foo));
17 }
18
19 static class Observable<F> {
20
21 static <T> Observable<T> just(T param) {
22 throw new RuntimeException();
23 }
24 }
25
26 public abstract static class ImmutableList<E> implements List<E> {
27
28 public static <E> ImmutableList<E> of(E element) {
29 throw new RuntimeException();
30 }
31 }
32 }