[Issue 7558] Useless 'cannot implicitly convert' errors when number of function arguments is wrong

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 30 05:34:11 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=7558

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com

--- Comment #4 from yebblies <yebblies at gmail.com> ---
(In reply to hsteoh from comment #3)
> Seems to have been fixed in git HEAD:
> -----
> $ cat test.d
> void bug7558(string x, int y, double z) {}
> 
> void main()
> {
>    bug7558(4, 2.2);
> }   
> $ dmd test.d
> test.d(5): Error: function test.bug7558 (string x, int y, double z) is not
> callable using argument types (int, double)
> $ 
> -----
> No extraneous errors were given.

Did you test it with D1?

--


More information about the Digitalmars-d-bugs mailing list