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

2.5节描述 #21

Open
liuwuyao opened this issue Apr 27, 2021 · 0 comments
Open

2.5节描述 #21

liuwuyao opened this issue Apr 27, 2021 · 0 comments

Comments

@liuwuyao
Copy link

2.5节描述
2.5.3 空接口的坑1
坑1:空接口可以承载任意值,但不代表任意类型就可以承接空接口类型的值
我的理解是:因为空接口包含两个属性:类型和值。而任意类型只包含值,所以无法把空接口赋值给任意类型

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