annotate run/a/alias_31_D.d @ 1534:345207906be7

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:35 +0000
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
1 // $HeadURL$
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
2 // $Date$
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
3 // $Author$
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
4
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
6 // @date@ 2006-02-09
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1268
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6193
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
8
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
9 module dstress.run.a.alias_31_D;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
10
1268
93511f726375 partial review
thomask
parents: 1091
diff changeset
11 template StructOf(Type){
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
12 struct StructOf{
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
13 Type val;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
14
1534
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
15 template ref_tmpl(){
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
16 alias val ref_tmpl;
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
17 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
18 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
19 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
20
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
21 int main(){
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 826
diff changeset
22 auto c = new StructOf!(int)();
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
23 int x = 3;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
24
1534
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
25 c.ref_tmpl!() = x;
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
26
1534
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
27 if(c.ref_tmpl!() == 3){
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
28 return 0;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
29 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
30 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
31