safe delete: delete type parameters of the overriding method, otherwise it would be a compilation error (IDEA-142378)

This commit is contained in:
Anna Kozlova
2015-07-08 20:37:19 +03:00
parent 51af5a6312
commit 1aea1b76e7
6 changed files with 58 additions and 3 deletions
@@ -0,0 +1,11 @@
class A {
public <<caret>T> void foo() {}
}
class B extends A {
@Override
public <T> void foo() {
super.foo();
}
}
@@ -0,0 +1,11 @@
class A {
public void foo() {}
}
class B extends A {
@Override
public void foo() {
super.foo();
}
}
@@ -277,6 +277,10 @@ public class SafeDeleteTest extends MultiFileTestCase {
doSingleFileTest();
}
public void testTypeParameterWithinMethodHierarchy() throws Exception {
doSingleFileTest();
}
public void testClassWithInnerStaticImport() throws Exception {
doTest("ClassWithInnerStaticImport");
}