type param bound check fixed (IDEA-110869)

This commit is contained in:
anna
2013-07-23 18:38:42 +02:00
parent 12b08c4336
commit d3fcd37b20
5 changed files with 23 additions and 4 deletions
@@ -0,0 +1,12 @@
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 '?' for type parameter 'T' is not within its bound; should extend 'A'">getA(aClass)</error>;
}
}