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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 21 13:29:24 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7558



--- Comment #2 from Don <clugdbug at yahoo.com.au> 2012-02-21 13:29:21 PST ---
void bug7558(string x, int y, double z) {}

void main()
{
   bug7558(4, 2.2);
}   

DMD 1.073 / 2.057:

bug.d(5): Error: function bug.bug7558 (char[],int,double) does not match
paramet
er types (int,double)
bug.d(5): Error: cannot implicitly convert expression (4) of type int to char[]
bug.d(5): Error: cannot implicitly convert expression (2.2) of type double to
in
t
bug.d(5): Error: expected 3 function arguments, not 2


But the second and third errors don't happen in 2.058. Looks like this is a D1
only bug -- a patch that didn't get merged?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list