Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- class A {
- interface Function<B, C> {
- C apply(B input);
- }
- private <B,C> Iterable<C> transform(Iterable<B> iterable, Function<? super B, ? extends C> transform) {
- // impl not relevant for bug
- return new ArrayList<>();
- }
- public static class In<V> {}
- public static class Out<V> {}
- public <V> Out<V> fn(In<V> in) {
- return null;
- }
- public void myMethod() {
- Iterable<In<?>> ins = new ArrayList<>();
- Iterable<Out<?>> outs = transform(ins, this::fn);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement