通过接口 A<T>,为什么 A<string> 可以赋值给 A<number>?这个解析似乎有错误。

作者: aatoe创建于 2022年1月27日更新于 2022年1月27日

<img width="785" alt="1111" src="https://user-images.githubusercontent.com/38155265/151273933-2d605c12-ba82-4401-82e7-74b60fd012df.png">

内容来源: jkchao/typescript-book-chinese