Mercurial > projects > dstress
annotate compile/e/enum_46_D.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | a9bd4f3bb932 |
children |
rev | line source |
---|---|
1104 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ James Pelcis <jpelcis@gmail.com> | |
6 // @date@ 2006-07-12 | |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1104
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=250 |
1104 | 8 // @desc@ [Issue 250] enum : bool allowed with odd results |
9 | |
10 module dstress.compile.e.enum_46_D; | |
11 | |
12 enum Bool : bool { | |
13 Unknown = false, | |
14 False = false, | |
15 True, | |
16 } | |
17 | |
18 static assert(Bool.False == false); | |
19 static assert(Bool.True == true); | |
20 static assert(Bool.Unknown == false); |