| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/diag23355.d(1): Error: undefined identifier `n` |
| 5 |
fail_compilation/diag23355.d(4): Error: template `ffi1` is not callable using argument types `!()(int[4])` |
| 6 |
fail_compilation/diag23355.d(1): Candidate is: `ffi1(T)(T[n] s)` |
| 7 |
fail_compilation/diag23355.d(2): Error: undefined identifier `n` |
| 8 |
fail_compilation/diag23355.d(4): Error: template `ffi2` is not callable using argument types `!()(int[4])` |
| 9 |
fail_compilation/diag23355.d(2): Candidate is: `ffi2()(T[n] s)` |
| 10 |
--- |
| 11 |
*/ |
| 12 |
#line 1 |
| 13 |
void ffi1(T)(T[n] s) { } |
| 14 |
void ffi2()(T[n] s) { } |
| 15 |
|
| 16 |
void main() { int[4] x; ffi1(x); ffi2(x); } |