Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过接口 A<T>,为什么 A<string> 可赋值给 A<number>? 这个解析貌似错误的。 #255

Open
aatoe opened this issue Jan 27, 2022 · 0 comments

Comments

@aatoe
Copy link

aatoe commented Jan 27, 2022

1111

我的TS版本为:^4.3.4

我在VScode 尝试了一下你的demo,并不会发生转换。赋值虽然成功,并不会改变泛型。
其实这个例子本质没啥意义,当作探索TS边界挺好的。

3333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant