[Issue 19218] object.destroy should check for classes for static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 15 15:08:22 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=19218
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |moonlightsentinel at disroot.o
| |rg
--- Comment #2 from moonlightsentinel at disroot.org ---
(In reply to karita from comment #1)
> I agree with you. I made a unittest for checking this [...]
That unittest is wrong because it destroys the >pointer< to an A instead of the
instance (`destroy` takes its arguments by ref).
--
More information about the Digitalmars-d-bugs
mailing list