If there is no ctor defined (e.g. default one is called) class invariant is not called.
Comment #1 by gim913 — 2008-06-28T19:03:59Z
Created attachment 261
Testcase
compiled gives following result:
before test
tango.core.Exception.AssertException@t05_invariant.d(12): classinvariantcalled
after removing comment on line 8 it throws AssertException
right after creating object
Comment #2 by smjg — 2009-01-10T11:30:46Z
*** This bug has been marked as a duplicate of 519 ***