override/implement: do not add type parameters from super method if supercalss was erased (IDEA-142453)

This commit is contained in:
Anna Kozlova
2015-07-14 22:07:19 +03:00
parent 72cc102c0d
commit 6dddedeb39
4 changed files with 26 additions and 2 deletions
@@ -0,0 +1,12 @@
class Foo<T> {
<S> S foo(T foo) {
return null;
}
}
class Bar<S> extends Foo {
@Override
Object foo(Object foo) {
<selection>return super.foo(foo);</selection>
}
}
@@ -0,0 +1,9 @@
class Foo<T> {
<S> S foo(T foo) {
return null;
}
}
class Bar<S> extends Foo {
<caret>
}