[Issue 2357] New: compiler fails to choose an overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 11 16:34:47 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2357
Summary: compiler fails to choose an overload
Product: D
Version: 2.019
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: snake.scaly at gmail.com
The following code:
import std.string;
void main() {
toString(5uL, 16);
}
when compiled, produces this output:
>dmd -c test.d
test.d(3): function std.string.toString called with argument types:
(ulong,int)
matches both:
std.string.toString(long value, uint radix)
and:
std.string.toString(ulong value, uint radix)
More information about the Digitalmars-d-bugs
mailing list