[Issue 13628] Error: immutable method S.~this is not callable using a mutable object and vice versa

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 17 06:21:47 PDT 2014


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

--- Comment #1 from Marco Leise <Marco.Leise at gmx.de> ---
Reduced test case:

struct B {
    ~this() { /* some cleanup */ }
}

struct C {
    immutable B b;
}

void main() {
    C(immutable B());
}

--


More information about the Digitalmars-d-bugs mailing list