Mercurial > projects > dstress
view nocompile/invariant_09.d @ 1532:94502f22d55e
fixed ModuleInfo dependency
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:35:45 +0000 |
parents | f87ba6507260 |
children | ec5e144583ea |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // invariant is only allowed in class/union/struct (dmd-0.119 documentation) // __DSTRESS_ELINE__ 13 module dstress.nocompile.invariant_09; class MyClass{ int test(){ invariant{ assert(0); } return 0; } } int main(){ Myclass c = new MyClass(); return c.test(); }