|
|
1
5
回答你的问题,,
底线是传递给协变列表的任何对象都将找到值的公共类型。请参阅中的讨论 Why doesn't the example compile, aka how does (co-, contra-, and in-) variance work?
正如您所发现的,常见的
|
|
|
2
4
1) 类型
2) 反对
|