| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail235.d(12): Error: template instance `Tuple!(typeid(char))` expression `typeid(char)` is not a valid template value argument |
| 5 |
--- |
| 6 |
*/ |
| 7 |
template Tuple(TPL...) |
| 8 |
{ |
| 9 |
alias TPL Tuple; |
| 10 |
} |
| 11 |
|
| 12 |
auto K = Tuple!(typeid(char)); |
| 13 |
|
| 14 |
/* |
| 15 |
TEST_OUTPUT: |
| 16 |
--- |
| 17 |
fail_compilation/fail235.d(24): Error: template instance `Alias!(typeid(char))` expression `typeid(char)` is not a valid template value argument |
| 18 |
--- |
| 19 |
*/ |
| 20 |
template Alias(alias A) |
| 21 |
{ |
| 22 |
alias A Alias; |
| 23 |
} |
| 24 |
auto A = Alias!(typeid(char)); |