| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail220.d(12): Error: identifier expected for template value parameter |
| 5 |
fail_compilation/fail220.d(12): Error: found `==` when expecting `)` |
| 6 |
fail_compilation/fail220.d(12): Error: found `class` when expecting `)` |
| 7 |
fail_compilation/fail220.d(12): Error: declaration expected, not `)` |
| 8 |
fail_compilation/fail220.d(16): Error: unmatched closing brace |
| 9 |
--- |
| 10 |
*/ |
| 11 |
template types (T) { |
| 12 |
static if (is (T V : V[K], K == class)) { |
| 13 |
static assert (false, "assoc"); |
| 14 |
} |
| 15 |
static const int types = 4; |
| 16 |
} |
| 17 |
|
| 18 |
int i = types!(int); |