https://issues.dlang.org/show_bug.cgi?id=19218
karita <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from karita <[email protected]> --- I agree with you. I made a unittest for checking this --- unittest { struct S { static dtorCount = 0; ~this() { ++dtorCount; } } class C { static dtorCount = 0; ~this() { ++dtorCount; } } struct A(T) { T[3] a; alias a this; } auto as = new A!S; destroy(as); auto ac = new A!C; destroy(as); assert(S.dtorCount == 3); // 0 assert(C.dtorCount == 3); // 0 } --
