www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4592] New: Can't overload over strings

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: dfj1esp02 sneakemail.com


--- Comment #0 from Sobirari Muhomori <dfj1esp02 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: -------
Aug 06 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4592


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies gmail.com> 2011-06-15 07:52:05 PDT ---
*** This issue has been marked as a duplicate of issue 2367 ***

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