https://issues.dlang.org/show_bug.cgi?id=22498
Sebastiaan Koppe <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Sebastiaan Koppe <[email protected]> --- As have I commented on the newsgroup https://forum.dlang.org/post/[email protected] " It doesn't copy. It just destructs the same object twice... Ouch. Change the destructor to ~this() { printf("~this(%d)\n", n); n = 12; } and you'll see. " --
