[Issue 2402] [module] Type is not found if accessed via renamed import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 14 05:35:42 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2402
dawg at dawgfoto.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dawg at dawgfoto.de
Resolution| |WORKSFORME
--- Comment #2 from dawg at dawgfoto.de 2012-02-14 05:35:41 PST ---
cat > m1.d << CODE
module m1;
struct Foo { int x; }
CODE
cat > m2.d << CODE
module m2;
struct Foo { int x; int y; }
CODE
cat > m.d << CODE
module m;
import M1 = m1;
import M2 = x2; // line 4
import M2 = m2; // line 5
M2.Foo convert(M1.Foo foo)
{
M2.Foo result = void;
result.x = foo.x;
result.y = foo.y;
return result;
}
CODE
dmd -c m.d
----------
With dmd2.057:
m.d(4): Error: module x2 is in file 'x2.d' which cannot be read
--
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