[Issue 7558] New: 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 07:14:06 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7558
Summary: Useless 'cannot implicitly convert' errors when number
of function arguments is wrong
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-02-21 07:14:03 PST ---
When the compiler reports errors of the form "expected 6 function arguments,
not 5",
trying to implicitly convert the first 5 arguments generates spurious "cannot
implicitly convert XXX to YYY" errors.
To add value, the compiler could try to work out which argument is missing;
unless it does that, it shouldn't attempt the conversion.
--
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