Summary: replaceFirst doesn't work for string[] haystack
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Andrej Mitrovic <> 2012-06-02 
09:40:55 PDT ---
import std.array;

void main()
    string[] res = ["a", "a"];
    string[] x = replace(res, "a", "b");  // ok
    string[] y = replaceFirst(res, "a", "b");  // NG

Error: D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\array.d(1763): Error:
cannot implicitly convert expression ( of type string to string[]

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to