[Issue 11451] import statements don't work when compiling several files at once

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 6 05:30:01 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11451



--- Comment #2 from Dicebot <public at dicebot.lv> 2013-11-06 05:30:00 PST ---
Ah, I see what you mean, you examples are actually incomplete (it will fail to
compile with no import statements as expected)

Most likely you are trying to import baz.d from bazuser via `import
foo.bar.baz` and getting this error. This is expected and by design as module
name equals to file name by default and you are importing it via qualified
(package) name. Adding `module foo.bar.baz;` at top for baz.d will fix it.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list