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: nob...@puremagic.com
        ReportedBy: d_l...@ku6.jp


--- Comment #0 from Takuya Kurosawa <d_l...@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: -------

Reply via email to