Philippe Sigaud:
I'd prefer an error, with the same kind of nice message you get whenyou forget to import std.stdio.Ideally, the error should be caught as soon as the module is compiled,like shadowing errors (which it is, in a way)."module foo contains a member named foo. Module members cannot shadow module names."
This is the ER I have opened, if you have comments or you don't agree with my ideas, please comment there:
https://d.puremagic.com/issues/show_bug.cgi?id=12059 Bye, bearophile
