Mercurial > projects > dstress
annotate run/template_class_03.d @ 0:3269e4627918
init dstress
author | svnowner |
---|---|
date | Sat, 25 Sep 2004 22:33:30 +0000 |
parents | |
children | 3414705c41ac |
rev | line source |
---|---|
0 | 1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_03.d,v 1.1 2004/09/23 06:03:46 th Exp $ |
2 | |
3 // @author@ Roel Mathys <roel.mathys@yucom.be> | |
4 // @date@ 2004-05-21 | |
5 | |
6 class MyClass(T1){ | |
7 alias T1 type1; | |
8 } | |
9 | |
10 class MyClass(T1, T2){ | |
11 alias T1 type1; | |
12 alias MyClass!(T2) type2; | |
13 } | |
14 | |
15 int main(){ | |
16 alias MyClass!(int,long) CT; | |
17 CT c = new CT(); | |
18 return 0; | |
19 } |