Mercurial > projects > dstress
view run/enum_13.d @ 1330:f3f715978184
Georg Wrede <georg@iki.fi>
2007-01-07
mail:45A120F5.1050108@iki.fi
author | thomask |
---|---|
date | Sat, 13 Jan 2007 10:33:49 +0000 |
parents | db3d94221144 |
children | 52c9e86b6486 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Mike Parker <aldacron71@yahoo.com> // @date@ 2005-02-15 // @uri@ news:cus126$2mq4$1@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2991 module dstress.run.enum_13; class Foo{ enum MyEnum{ VALUE_A=1, } } class Bar{ enum MyEnum{ VALUE_B=2, } } int main(){ assert(Foo.MyEnum.VALUE_A==1); assert(Bar.MyEnum.VALUE_B==2); return 0; }