[Issue 519] Invariant not called from autogenerated constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 26 11:41:03 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=519



--- Comment #4 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-11-26 11:39:39 PST ---
Forgot to add the actual parens :o).

class Foo {
    // this() {}
    invariant() {
        assert (false);
    }
}

void main() {
    Foo foo = new Foo();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list