struct S { @disable this() immutable;//注解 } void main() { S s; }
当不能访问构造器时,加不加不变都一样,编译器在此,都没看限定符.
构造器
不变
编译器
限定符