https://d.puremagic.com/issues/show_bug.cgi?id=11847

           Summary: Importing "package.d" module causes qualified name
                    lookup to fail for sub modules
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: slud...@outerproduct.org


--- Comment #0 from S�nke Ludwig <slud...@outerproduct.org> 2013-12-30 13:49:45 
PST ---
The following errors out with "main.d(5): Error: undefined identifier 'mod'":

main.d
---
import test;
import test.mod;

void main() {
    test.mod.func();
}
---

test/package.d
---
module test;
---

test/mod.d
---
module test.mod;

void func() {}
---

Seems like ".test" now refers to the module instead of the package and thus
there is no sub module "mod". Tested on DMD 2.064.2.

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

Reply via email to