import java.util.List; import java.util.function.Function; public class Issue1715 { static final class A { public A() {} public Object foo(Object o) { return o; } } private Observable>> test(A a) { return Observable.just(ImmutableList.of(a::foo)); } static class Observable { static Observable just(T param) { throw new RuntimeException(); } } public abstract static class ImmutableList implements List { public static ImmutableList of(E element) { throw new RuntimeException(); } } }