[Issue 21415] catch immutable exceptions breaks immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 23 17:42:07 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21415
Daniel Kozak <kozzi11 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kozzi11 at gmail.com
--- Comment #2 from Daniel Kozak <kozzi11 at gmail.com> ---
I would say this one is even worse:
immutable foo = new Exception("omg");
void main() {
import std.stdio;
try {
throw foo;
} catch(Exception e) {
e.msg = "broken";
writeln("caught ", e);
}
}
--
More information about the Digitalmars-d-bugs
mailing list