[Issue 4592] New: Can't overload over strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 6 12:56:17 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4592
Summary: Can't overload over strings
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dfj1esp02 at sneakemail.com
--- Comment #0 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-08-06 12:56:15 PDT ---
---
void goo(string p){}
void goo(wstring p){}
void goo()
{
immutable wstring pp="pp";
goo(pp);
}
---
>dmd -c test.d -w -o- -debug
---
test.d(11): Error: function test.goo called with argument types:
((immutable(wchar[])))
matches both:
test.goo(string p)
and:
test.goo(immutable(wchar)[] p)
---
Digital Mars D Compiler v2.047
--
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