| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail134.d(14): Error: template instance `foo!(f)` does not match template declaration `foo(T)` |
| 5 |
fail_compilation/fail134.d(14): `f` is not a type |
| 6 |
fail_compilation/fail134.d(15): Error: template instance `fail134.bar!(f)` error instantiating |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
// https://issues.dlang.org/show_bug.cgi?id=651 |
| 11 |
// Assertion failure: 'global.errors' on line 2622 in file 'template.c' |
| 12 |
void f() {} |
| 13 |
template foo(T) {} |
| 14 |
template bar(T...) { alias foo!(T) buz; } |
| 15 |
alias bar!(f) a; |