mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
incompatible return types in hierarchy fixed (IDEA-173809)
take parameter bounds into account
This commit is contained in:
+10
@@ -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> {
|
||||
}
|
||||
Reference in New Issue
Block a user