Mercurial > projects > dstress
annotate 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 |
rev | line source |
---|---|
1276
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
2 // $Date$ |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
3 // $Author$ |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
4 |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
5 // @author@ Nazo Humei <lovesyao@hotmail.com> |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
6 // @date@ 2006-11-12 |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
7 // @uri@ news:bug-494-3@http.d.puremagic.com/issues/ |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 494] New: template's variadic argument can't use as type |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
9 |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
10 module dstress.compile.t.tuple_07_C; |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
11 |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
12 template test(TA...){ |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
13 const TA[0] test = TA[0].init; |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
14 } |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
15 |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
16 static assert(test!(X) == cast(X)4); |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
17 |
3054c226a571
[Issue 494] New: template's variadic argument can't use as type
thomask
parents:
diff
changeset
|
18 typedef int X = 4; |