[Issue 209] "Diamond" import name conflicts when using Fully Qualified names
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 12 15:18:01 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=209
daiphoenix at lycos.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|0.160 |0.162
------- Comment #3 from daiphoenix at lycos.com 2006-07-12 17:18 -------
Hum, seems this was partially fixed in DMD.161 : The example above works since
DMD.161, but there is one other that doesn't currently(.162), this one is not
"diamond" shaped anymore since the top is folded into two. Let's see the code:
---- test.d ----
module test;
import tierOneA;
import tierOneB;
alias pack.fooA XXX;
// the above gets the error:
// import tierOneA.pack conflicts with tierOneB.pack at tierOneB.d(3)
---- tierOneA.d ----
module tierOneA;
import pack.fooA;
---- tierOneB.d ----
module tierOneB;
import pack.fooB;
---- pack.fooA ----
module pack.fooA; // this is the second tier A
---- pack.fooB ----
module pack.fooB; // this is the second tier B
--
More information about the Digitalmars-d-bugs
mailing list