immutable string a; struct Test { static immutable string b; }
shared static this() { a = "foo"; Test.b = "bar"; } Error: cannot modify immutable expression b
aliak via Digitalmars-d-learn Sun, 03 Mar 2019 12:15:33 -0800
immutable string a; struct Test { static immutable string b; }
shared static this() { a = "foo"; Test.b = "bar"; } Error: cannot modify immutable expression b