293
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Mike Parker <aldacron71@yahoo.com>
|
|
6 // @date@ 2005-02-15
|
|
7 // @uri@ news:cus126$2mq4$1@digitaldaemon.com
|
1384
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2991
|
293
|
9
|
|
10 module dstress.run.enum_13;
|
|
11
|
|
12 class Foo{
|
|
13 enum MyEnum{
|
|
14 VALUE_A=1,
|
|
15 }
|
|
16 }
|
|
17
|
|
18 class Bar{
|
|
19 enum MyEnum{
|
|
20 VALUE_B=2,
|
|
21 }
|
|
22 }
|
|
23
|
|
24 int main(){
|
|
25 assert(Foo.MyEnum.VALUE_A==1);
|
|
26 assert(Bar.MyEnum.VALUE_B==2);
|
|
27 return 0;
|
|
28 } |