[Issue 7122] [module] compiler fails to handle import of renamed module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 8 15:54:26 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7122



--- Comment #4 from Martin Nowak <code at dawg.eu> 2013-01-08 15:54:25 PST ---
>but you have to use the name in the
module declaration when importing

---
cat > a0.d << CODE
module foo;
CODE

cat > a1.d << CODE
import foo;
CODE

dmd -c a1.d
---
a1.d(1): Error: module foo is in file 'foo.d' which cannot be read
---

How is the compiler to know where to find the module foo?

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


More information about the Digitalmars-d-bugs mailing list