incompatible return types in hierarchy fixed (IDEA-173809)

take parameter bounds into account
This commit is contained in:
Anna Kozlova
2017-06-05 20:14:44 +03:00
parent fbd082f075
commit a5501a81c0
3 changed files with 15 additions and 1 deletions
@@ -0,0 +1,10 @@
class ListA<Ta> {
public <R extends Ta> Ta foo() { throw new Error(); }
}
class ListB<Tb> extends ListA<Tb> {
public <Rb extends Tb> Rb foo() { throw new Error(); }
}
class ListC<Tc> extends ListB<Tc> {
}