Mercurial > projects > dstress
comparison run/alias_03.d @ 0:3269e4627918
init dstress
author | svnowner |
---|---|
date | Sat, 25 Sep 2004 22:33:30 +0000 |
parents | |
children | 3414705c41ac |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3269e4627918 |
---|---|
1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/alias_03.d,v 1.1 2004/08/20 23:42:51 th Exp $ | |
2 | |
3 template Foo2(T) { alias T t; } | |
4 alias Foo2!(int) t1; | |
5 alias Foo2!(int).t t2; | |
6 alias t1.t t3; | |
7 alias t2 t4; | |
8 | |
9 int main(char[][] args){ | |
10 t1.t v1; // v1 is type int | |
11 t2 v2; // v2 is type int | |
12 t3 v3; // v3 is type int | |
13 return 0; | |
14 } |