blob: e2784e924ab7e16b9a85d5e8f2ca2a462d8a94a7 [file] [log] [blame]
class A {
}
abstract class B {
public <T extends A> T getA(Class<T> aClass) {
return null;
}
void foo(Class<?> aClass) {
A a = <error descr="Inferred type 'capture<?>' for type parameter 'T' is not within its bound; should extend 'A'">getA(aClass)</error>;
}
}