mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
18 lines
557 B
D
18 lines
557 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail220.d(12): Error: identifier expected for template value parameter
|
|
fail_compilation/fail220.d(12): Error: found `==` when expecting `)`
|
|
fail_compilation/fail220.d(12): Error: found `class` when expecting `)`
|
|
fail_compilation/fail220.d(12): Error: declaration expected, not `)`
|
|
fail_compilation/fail220.d(16): Error: unmatched closing brace
|
|
---
|
|
*/
|
|
template types (T) {
|
|
static if (is (T V : V[K], K == class)) {
|
|
static assert (false, "assoc");
|
|
}
|
|
static const int types = 4;
|
|
}
|
|
|
|
int i = types!(int);
|