Mercurial > projects > dstress
comparison compile/t/tuple_07_C.d @ 1276:3054c226a571
[Issue 494] New: template's variadic argument can't use as type
Nazo Humei <lovesyao@hotmail.com>
2006-11-12
news:bug-494-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Sat, 23 Dec 2006 19:47:13 +0000 |
parents | |
children | daef239f37cf |
comparison
equal
deleted
inserted
replaced
1275:a00c90d4303d | 1276:3054c226a571 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Nazo Humei <lovesyao@hotmail.com> | |
6 // @date@ 2006-11-12 | |
7 // @uri@ news:bug-494-3@http.d.puremagic.com/issues/ | |
8 // @desc@ [Issue 494] New: template's variadic argument can't use as type | |
9 | |
10 module dstress.compile.t.tuple_07_C; | |
11 | |
12 template test(TA...){ | |
13 const TA[0] test = TA[0].init; | |
14 } | |
15 | |
16 static assert(test!(X) == cast(X)4); | |
17 | |
18 typedef int X = 4; |