Error: module `M.Q` from file M\Q.d conflicts with another module Q from file M\Q.d
Amex
Amex at gmail.com
Sun Jun 2 19:37:47 UTC 2019
main.d(217): Error: module `M.Q` from file M\Q.d conflicts with
another module Q from file M\Q.d
the line is simply
import Q : foo;
the problem is that it should have been
import M.Q : foo;
There is no module Q.
The error message is in error! There is no other module.
the module is named
module M.Q;
where M is a subdirectory. This is probably suppose to be module
Q; but everything works out.
The error message could be more accurate(took me a min to figure
out what was going on).
More information about the Digitalmars-d-learn
mailing list