Thread overview
[Issue 7558] Useless 'cannot implicitly convert' errors when number of function arguments is wrong
Jul 30, 2014
yebblies
[Issue 7558] (D1 only) Useless 'cannot implicitly convert' errors when number of function arguments is wrong
Jul 30, 2014
yebblies
Nov 07, 2019
RazvanN
July 30, 2014
https://issues.dlang.org/show_bug.cgi?id=7558

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hsteoh@quickfur.ath.cx
         Resolution|---                         |WORKSFORME

--- Comment #3 from hsteoh@quickfur.ath.cx ---
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.

--
July 30, 2014
https://issues.dlang.org/show_bug.cgi?id=7558

yebblies <yebblies@gmail.com> changed:

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

--- Comment #4 from yebblies <yebblies@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?

--
July 30, 2014
https://issues.dlang.org/show_bug.cgi?id=7558

--- Comment #5 from hsteoh@quickfur.ath.cx ---
Hmph, didn't notice it was marked for both D1 and D2. Should this be reopened for D1 then?

--
July 30, 2014
https://issues.dlang.org/show_bug.cgi?id=7558

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
            Version|D1 & D2                     |D1
         Resolution|WORKSFORME                  |---
            Summary|Useless 'cannot implicitly  |(D1 only) Useless 'cannot
                   |convert' errors when number |implicitly convert' errors
                   |of function arguments is    |when number of function
                   |wrong                       |arguments is wrong

--- Comment #6 from yebblies <yebblies@gmail.com> ---
(In reply to hsteoh from comment #5)
> Hmph, didn't notice it was marked for both D1 and D2. Should this be reopened for D1 then?

Probably.

--
November 07, 2019
https://issues.dlang.org/show_bug.cgi?id=7558

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #7 from RazvanN <razvan.nitu1305@gmail.com> ---
D1 is no longer supported/ Closing as WORKSFORME.

--