[Issue 880] New: private imports not honored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 23 21:36:36 PST 2007


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

           Summary: private imports not honored
           Product: D
           Version: 1.001
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: tomas at famolsen.dk


I would think this would fail, but it doesn't:

--------------------------
module c;
void f() {
}
--------------------------
module b;
import c;
--------------------------
module a;
import b;
void main() {
    c.f();
}
--------------------------

just using 'f()' instead of 'c.f()' works as it should giving the error:
'undefined identifier f'.


-- 



More information about the Digitalmars-d-bugs mailing list