[Issue 5666] New: std.array.replace compile error (string and immutable string)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 28 02:06:04 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5666
Summary: std.array.replace compile error (string and immutable
string)
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: d_lang at ku6.jp
--- Comment #0 from Takuya Kurosawa <d_lang at ku6.jp> 2011-02-28 02:03:03 PST ---
Code
----
import std.array;
void main()
{
immutable string r = "de";
replace("abcde", "abc", r);
}
----
Compile error
----
test.d(6): Error: template std.array.replace(T,Range) if
(isDynamicArray!(Range) && is(ElementType!(Range) : T)) does not match any
function template declaration
test.d(6): Error: template std.array.replace(T,Range) if
(isDynamicArray!(Range) && is(ElementType!(Range) : T)) cannot deduce template
function from argument types !()(string,string,immutable(char[]))
----
dmd version is 2.052.
--
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