Bug 4592 – Can't overload over strings

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-08-06T12:56:00Z
Last change time
2011-06-15T07:52:05Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2010-08-06T12:56:15Z
--- 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
Comment #1 by yebblies — 2011-06-15T07:52:05Z
*** This issue has been marked as a duplicate of issue 2367 ***