Mercurial > projects > dstress
annotate run/super_04.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/super_04.d,v 1.1 2004/09/23 06:08:42 th Exp $ |
2 | |
3 // @author@ J Anderson <REMOVEanderson@badmama.com.au> | |
4 // @date@ 2004-05-23 | |
5 | |
6 template MyTemplate(Type){ | |
7 this(){ | |
8 super.test(); | |
9 } | |
10 } | |
11 | |
12 class Parent{ | |
13 int test(){ | |
14 return 2; | |
15 } | |
16 } | |
17 | |
18 class Child : Parent{ | |
19 mixin MyTemplate!(Child); | |
20 } | |
21 | |
22 int main(){ | |
23 Child c = new Child(); | |
24 return 0; | |
25 } |