blob: db4f895b21bf4ef9eb7f58db7204daec9d755388 [file] [log] [blame]
import java.util.List;
class Test {
interface Function<X, Y> {
Y m(X x);
}
interface Node<E> {
List<E> foo();
}
class Data<T, I> {
Data(I state, Function<I, List<T>> fun) { }
}
<O> Data<O, Node<O>> test(Node<O> collection) {
return new Data<>(collection, Node::foo);
}
}