Comment #0 by verylonglogin.reg — 2013-11-05T05:51:47Z
---
struct S
{
const int i;
void opOpAssign(string op : "+")(int) { }
void opOpAssign(string op : "~")(int) { }
}
void main()
{
S s;
s += ""; // Error: cannot modify struct s S with immutable members
s ~= ""; // Error: cannot modify struct s S with immutable members
}
---
Comment #1 by robert.schadek — 2024-12-13T18:13:43Z