comparison 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
comparison
equal deleted inserted replaced
1533:ac560364010c 1534:345207906be7
9 module dstress.run.a.alias_31_A; 9 module dstress.run.a.alias_31_A;
10 10
11 class ClassOf(Type){ 11 class ClassOf(Type){
12 Type val; 12 Type val;
13 13
14 template ref(){ 14 template ref_tmpl(){
15 alias val ref; 15 alias val ref_tmpl;
16 } 16 }
17 } 17 }
18 18
19 int main(){ 19 int main(){
20 auto c = new ClassOf!(int)(); 20 auto c = new ClassOf!(int)();
21 int x = 3; 21 int x = 3;
22 22
23 c.ref!() = x; 23 c.ref_tmpl!() = x;
24 24
25 if(c.ref!() == 3){ 25 if(c.ref_tmpl!() == 3){
26 return 0; 26 return 0;
27 } 27 }
28 } 28 }
29 29