annotate run/a/alias_31_A.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: 826
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_A;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
10
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
11 class ClassOf(Type){
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
12 Type val;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
13
1534
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
14 template ref_tmpl(){
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
15 alias val ref_tmpl;
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
16 }
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 int main(){
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
20 auto c = new ClassOf!(int)();
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
21 int x = 3;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
22
1534
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
23 c.ref_tmpl!() = x;
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
24
1534
345207906be7 updated to DMD-1.013
thomask
parents: 1489
diff changeset
25 if(c.ref_tmpl!() == 3){
826
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
26 return 0;
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
27 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
28 }
2559f0f5baad Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
29