[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Nov 21 18:02:01 PST 2014


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

--- Comment #15 from Stewart Gordon <smjg at iname.com> ---
(In reply to Walter Bright from comment #11)
> I'm skeptical, however, of the value of running it on default construction,
> as those values will always be the .init ones.

Maybe have a rule that, if the -unittest option is set, autogenerate a unittest
to call the invariant on the .init.

--


More information about the Digitalmars-d-bugs mailing list