假设我们有{ public int compareTo(Fruit o) { returnString args[]) function(new Apple()); // this shouldn't work because Apple is implementing Comparable<Fruit>, not Comparabl
class A <T extends String & Comparable<T>>{}java: java.lang.Comparable cannot be inherited withdifferent arguments: <T> and <java.lang.String>class A <T extends Number & Comparable<T>>{}