[Issue 24034] Changing this in constructor allows to modify immutable members of other instance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 23 21:28:47 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24034
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nick at geany.org
Resolution|--- |FIXED
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
The pull for issue 24024 was reverted and it was marked WONTFIX.
Assignment to `this` now gives:
thislval2.d(8): Error: cannot modify expression `this` because it is not an
lvalue
--
More information about the Digitalmars-d-bugs
mailing list