https://run.dlang.io/is/OHlf2c import std.stdio; static interface I { ref double bar() @safe pure nothrow @nogc; } static abstract class D { int index; } static class C : D, I { double value; ref double bar() @safe pure nothrow @nogc { return value; } this(double d) { value = d; } ~this() nothrow {} } void main() nothrow { auto c = new C(1); destroy(c); }
@ShigekiKarita updated dlang/druntime pull request #2674 "Fix issue 20049 - object.destroy doesn't propagate attributes " mentioning this issue: - add minimal regression test for Issue 20049 https://github.com/dlang/druntime/pull/2674
dlang/druntime pull request #2674 "Fix issue 20049 - object.destroy doesn't propagate attributes " was merged into stable: - 7864d22dca1d0323587d3320f7e0b1f9f294ba6f by karita: add minimal regression test for Issue 20049 https://github.com/dlang/druntime/pull/2674