check for type param numbers in java 1.6 should not rise error if super methods have type params (IDEA-57338)

This commit is contained in:
Anna Kozlova
2014-06-09 15:32:55 +04:00
parent 598f9219a6
commit 2f0830187b
3 changed files with 26 additions and 1 deletions
@@ -0,0 +1,17 @@
abstract class A {
abstract <T> void foo();
}
abstract class B extends A {
void foo()
{
this.<Integer>foo();
}
}
abstract class C {
void foo()
{
this.<error descr="Method 'foo()' does not have type parameters"><Integer></error>foo();
}
}