Mercurial > projects > dstress
view nocompile/invariant_06.d @ 202:4cd33115f015
1) fixed @author@ typos
2) added reporter.txt
author | thomask |
---|---|
date | Wed, 15 Dec 2004 17:37:40 +0000 |
parents | a33ad7189d21 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn> // @date@ 2004-10-22 // @uri@ news:clbr09$uc6$1@digitaldaemon.com // @url@ nntp://digitalmars.com/digitalmars.D.bugs/2140 // invariant is only allowed in classes (dmd-0.104 documentation) module dstress.nocompile.invariant_06; union MyUnion{ int i; void test(){ } invariant{ assert(0); } } int main(){ MyUnion u; u.test(); return 0; }