class A
{
A()
var x = 5; // this is allowed
}
var _x = 5; // the compiler is unhappy
我猜编译器必须能够像为本地变量一样推导成员变量的类型。那有什么区别呢?
弑天下
叮当猫咪
白板的微信
相关分类