blob: 853951660ed7c5eb7d231b49d6ca202d8d230a49 [file]
import java.util.List;
import java.util.ArrayList;
class Clazz {
void foo(List<? extends Number> l) {
boolean b = l.contains(<warning descr="'List<capture of ? extends Number>' may not contain objects of type 'String'">""</warning>); }
void bar() {
List<? extends Class<?>> l = new ArrayList<Class<?>>();
Class<?> o = String.class;
int i = l.indexOf(o);
}
}