Mercurial > projects > dstress
annotate run/super_04.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
5 // @author@ J Anderson <REMOVEanderson@badmama.com.au> | |
6 // @date@ 2004-05-23 | |
7 | |
374 | 8 module dstress.run.super_04; |
9 | |
0 | 10 template MyTemplate(Type){ |
11 this(){ | |
12 super.test(); | |
13 } | |
14 } | |
15 | |
16 class Parent{ | |
17 int test(){ | |
18 return 2; | |
19 } | |
20 } | |
21 | |
22 class Child : Parent{ | |
23 mixin MyTemplate!(Child); | |
24 } | |
25 | |
26 int main(){ | |
27 Child c = new Child(); | |
28 return 0; | |
29 } |