https://issues.dlang.org/show_bug.cgi?id=14242

Илья Ярошенко <ilyayaroshe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ilyayaroshe...@gmail.com
         Resolution|WORKSFORME                  |---

--- Comment #2 from Илья Ярошенко <ilyayaroshe...@gmail.com> ---
Does not work at least for nothrow 

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);
}

--

Reply via email to