On 29-04-2012 22:52, Andrej Mitrovic wrote:
On 4/29/12, Andrej Mitrovic<[email protected]> wrote:struct Foo { auto opIn_r(string op)(int i) { return 1; } }Sorry that's wrong, should be: struct Foo { auto opIn_r(int i) { return 1; } } And then you get: test.d(25): Error: function test.Foo.opIn_r (int i) is not callable using argument types (string) test.d(25): Error: cannot implicitly convert expression ("") of type string to int which much better than Bar's error message.
I think all of the error messages you posted could need improvement. In any case, that's a compiler issue if anything.
-- - Alex
