public class Testfx {
public static void apply(T t, S s) {
}
public static void main(String[] args) throws Exception {
apply(new Double(1.0), new Integer(1));
}
}
S我传的new Integer(1),T我传的new Double(1.0),按理泛型方法不是有自动类型推断吗,推断出T是Double,S是Integer,那应该不满足S extends T啊,怎么回事?