annotate run/forward_reference_07.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents d3a3e0c251d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
235
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
1 // $HeadURL$
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
2 // $Date$
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
3 // $Author$
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
4
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
6 // @date@ 2005-01-12
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
7 // @uri@ news:cs2t3t$1700$2@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2673
235
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
9
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
10 module dstress.run.forward_reference_07;
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
11
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
12 class MyClass{
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
13 MyEnum e;
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
14 }
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
15
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
16 enum MyEnum{
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
17 A=19,
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
18 B
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
19 }
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
20
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
21 int main(){
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
22 MyClass c = new MyClass();
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
23 assert(c.e==MyEnum.A);
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
24 return 0;
a6ffcb7cfc2b forward reference of enums
thomask
parents:
diff changeset
25 }