[Issue 11847] Importing "package.d" module causes qualified name lookup to fail for sub modules
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 16 15:50:05 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=11847
--- Comment #10 from cpierrot273 at gmail.com ---
I have found out that renamed imports in the can be used as a workaround:
test/package.d
---
module test;
import mod = test.mod;
---
test/mod.d
---
module test.mod;
import std.stdio;
void func(){writeln("hello world");}
---
main.d
---
import test;
import test.mod;
void main() {
func();
}
---
compiled and worked as expected (prints "hello world")
--
More information about the Digitalmars-d-bugs
mailing list