Closed
Description
Currently, the analyzer treats generic method bounds contra-variantly for sub-typing purposes. For example, the following is allowed:
class A {
void foo<T extends num>() {}
}
class B extends A {
void foo<T extends Object>() {}
}
Per language team decision, this should be changed to require that bounds be equal.
Activity