Mercurial > projects > dstress
annotate run/e/enum_44_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 9dcac8d4e97f |
children |
rev | line source |
---|---|
833 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Ant <duitoolkit@yahoo.ca> | |
6 // @date@ 2006-02-14 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6260 |
833 | 8 |
9 module dstess.run.e.enum_44_A; | |
10 | |
11 alias E.hello hello; | |
12 | |
13 enum E{ | |
14 hello = 3 | |
15 } | |
16 | |
17 int main(){ | |
18 static assert(hello == 3); | |
19 static assert(E.hello == 3); | |
1091 | 20 |
833 | 21 E e; |
22 | |
23 if(e == 3){ | |
24 return 0; | |
25 } | |
26 } |