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

           Summary: Selective imports don't work from inside a function
           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: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2011-08-10 11:32:16 PDT ---
/////////////////////////////////////////////////

module a;

void main() {
    import b : foo;

    foo();
}

/////////////////////////////////////////////////

module b;

void foo() {
    import std.stdio;

    writeln("FOO");
}

////////////////////////////////////////////////

$ dmd a.d b.d
a.d(6): Error: undefined identifier foo

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

Reply via email to