http://d.puremagic.com/issues/show_bug.cgi?id=8187
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 AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 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 (app.data()) of type string to string[] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------