This is a wrong D2 progra: struct Foo { int x; this(int x_) { this.x = x_; } } void test(Foo f ...) {} void main() { test(1); } DMD 2.049 shows at compile-time: test.d(9): Error: function test2.test (Foo f...) is not callable using argument types (int) test.d(9): Error: cannot implicitly convert expression (1) of type int to Foo But I'd like a better single error message, like for example: test.d(9): Error: function test2.test (Foo f...) is not callable using argument types (int), typesafe variadic functions for structs are not supported.
In v2.065, this produces: Error: function f14.test (Foo f...) is not callable using argument types (int) Is that acceptable; or do you still want the second part which you suggested?
(In reply to comment #1) > In v2.065, this produces: > > Error: function f14.test (Foo f...) is not callable using argument types (int) > > Is that acceptable; or do you still want the second part which you suggested? The error message is acceptable. Closed issue.