==== test.d ====== module test2; import test2; import test2.A; // (2) this wrong import can in another file ==== test2.d ====== module test2; ========== If one of the compiled files has a wrong import like (2) it happens DMD is pointing to a correct import or a simply wrong location: test2.d(3): module test2 module and package have the same name
It looks like you forgot you already hit the same bug 2 years ago ;) *** This issue has been marked as a duplicate of issue 176 ***