Mercurial > projects > dstress
comparison run/t/tuple_24_B.d @ 1525:ce8c04d69094
[Issue 1114] Indexed tuple cannot be used in inheritance declaration
Reiner Pope <reiner.pope@gmail.com>
2007-04-08
http://d.puremagic.com/issues/show_bug.cgi?id=1114
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:29:59 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1524:b5f3f03b37ad | 1525:ce8c04d69094 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Reiner Pope <reiner.pope@gmail.com> | |
6 // @date@ 2007-04-08 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1114 | |
8 // @desc@ [Issue 1114] Indexed tuple cannot be used in inheritance declaration | |
9 | |
10 module dstress.run.t.tuple_24_B; | |
11 | |
12 template Tuple(T...){ | |
13 alias T Tuple; | |
14 } | |
15 | |
16 alias Tuple!(Object) Foo; | |
17 alias Foo[0] Base; | |
18 | |
19 class Bar : Base{ | |
20 } | |
21 | |
22 int main(){ | |
23 Bar b = new Bar(); | |
24 return 0; | |
25 } |