[unittest] constness

Luc Bourhis via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 16 16:38:08 PST 2015


Testing constness implementation is easy:

const Foo a;
a.non_const_method(); // <<< compilation fails

but how would I catch that in a unittest?


More information about the Digitalmars-d mailing list