[Issue 412] New: overloaded function resolution with null parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 9 04:54:18 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=412
Summary: overloaded function resolution with null parameter
Product: D
Version: 0.169
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
typedef char[] String;
void f( char[] c, char[] a ){
}
void f( char[] c, String a ){
}
void main(){
f( "", "" ); // OK
f( "", cast(String)"" ); // OK
f( null, "" ); // OK
f( null, cast(String)"" ); // line 14
}
// d.d(14): function d.f called with argument types:
// (void*,String)
//matches both:
// d.f(char[],char[])
//and:
// d.f(char[],String)
--
More information about the Digitalmars-d-bugs
mailing list