Files
openide/java/java-tests/testData/psi/resolve/inference/InferWithWildcards2.java
2019-01-02 16:35:41 +01:00

25 lines
483 B
Java

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) {
<caret>getElements(foos);
}
}