blob: 8e316f01d75cb249ca0a0110721b6667ddd8bd34 [file] [log] [blame]
class Collection<T> {}
interface Bar {}
class BarImpl implements Bar {}
interface Foo<E extends Bar> {
Collection<E> getElements();
}
class FooImpl implements Foo<BarImpl> {
public Collection<BarImpl> getElements() {
return null;
}
}
public class Bazz {
public static <E extends Bar> Collection<E> getElements(Collection<? extends Foo<E>> foos) {
return null;
}
public static void failure(final Collection<FooImpl> foos) {
<ref>getElements(foos);
}
}