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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1104
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
1 // $HeadURL$
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
2 // $Date$
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
3 // $Author$
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
4
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
5 // @author@ James Pelcis <jpelcis@gmail.com>
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
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
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
8 // @desc@ [Issue 250] enum : bool allowed with odd results
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
9
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
10 module dstress.compile.e.enum_46_D;
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
11
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
12 enum Bool : bool {
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
13 Unknown = false,
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
14 False = false,
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
15 True,
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
16 }
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
17
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
18 static assert(Bool.False == false);
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
19 static assert(Bool.True == true);
a9bd4f3bb932 [Issue 250] enum : bool allowed with odd results
thomask
parents:
diff changeset
20 static assert(Bool.Unknown == false);