https://issues.dlang.org/show_bug.cgi?id=11847
--- Comment #10 from [email protected] --- 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") --
