Comment #0 by snarwin+bugzilla — 2024-10-10T18:04:59Z
As of DMD 2.109.1, the following program fails to compile:
---
void test(ubyte n)(int[n] a...) {}
void main()
{
test(1, 2, 3); // error
}
---
The error message is:
---
bug.d(5): Error: template `test` is not callable using argument types `!()(int, int, int)`
bug.d(1): Candidate is: `test(ubyte n)(int[n] a...)`
---
Any of the following changes cause the program to compile successfully:
- Changing the call site to `test([1, 2, 3])`
- Changing the call site to `test!3(1, 2, 3)`
- Changing the template parameter of `test` to `size_t n`
Comment #1 by robert.schadek — 2024-12-13T19:38:00Z