http://d.puremagic.com/issues/show_bug.cgi?id=9207

           Summary: std.array.join of immutable(string[])
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2012-12-25 01:59:17 PST ---
import std.array: join;
void main() {
    string[] names1;
    auto r1 = names1.join(); // OK
    immutable string[] names2;
    auto r2 = names2.join(); // error
}


DMD 2.061alpha gives:


test.d(6): Error: template std.array.join does not match any function template
declaration. Candidates are:
...\dmd2\src\phobos\std\array.d(1441):        std.array.join(RoR, R)(RoR ror, R
sep) if (isInputRange!(RoR) && isInputRange!(ElementType!(RoR)) &&
isForwardRange!(R) && is(Unqual!(ElementType!(ElementType!(RoR))) ==
Unqual!(ElementType!(R))))
...\dmd2\src\phobos\std\array.d(1451):        std.array.join(RoR)(RoR ror) if
(isInputRange!(RoR) && isInputRange!(ElementType!(RoR)))
...\dmd2\src\phobos\std\array.d(1441): Error: templte std.array.join cannot
deduce template function from argument types !()(immutable(char[][]))a

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to