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

           Summary: Named import in functions problem
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-07-08 17:41:27 PDT ---
This compiles correctly (DMD 2.054 beta):


import std.string: join;
void main() {
    string[] a = ["foo", "bar"];
    string s = join(a);
}



This too:

void main() {
    import std.string;
    string[] a = ["foo", "bar"];
    string s = join(a);
}



But this:

void main() {
    import std.string: join;
    string[] a = ["foo", "bar"];
    string s = join(a);
}


gives:
temp.d(4): Error: undefined identifier join, did you mean function main?

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

Reply via email to