成员改为默认公有,并为构造成员添加访问修饰符 #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
private
修饰的成员不能在外部访问;struct A(private x: X, y: Y) {...}
更新后的 BNF 片段: