826
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Sean Kelly <sean@f4.ca>
|
|
6 // @date@ 2006-02-09
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6193
|
826
|
8
|
|
9 module dstress.run.a.alias_31_D;
|
|
10
|
1268
|
11 template StructOf(Type){
|
826
|
12 struct StructOf{
|
|
13 Type val;
|
|
14
|
1534
|
15 template ref_tmpl(){
|
|
16 alias val ref_tmpl;
|
826
|
17 }
|
|
18 }
|
|
19 }
|
|
20
|
|
21 int main(){
|
1091
|
22 auto c = new StructOf!(int)();
|
826
|
23 int x = 3;
|
|
24
|
1534
|
25 c.ref_tmpl!() = x;
|
826
|
26
|
1534
|
27 if(c.ref_tmpl!() == 3){
|
826
|
28 return 0;
|
|
29 }
|
|
30 }
|
|
31
|