[Issue 3845] [module system] A problem caused by duplicated import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 14 05:52:19 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3845
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:52:16 PST ---
cat > mod1.d << CODE
module mod1;
import std.string: join;
import std.string: join;
CODE
cat > mod2.d << CODE
module mod2;
import std.string: join;
CODE
cat > test1.d << CODE
module test1;
import mod1, mod2;
void main() {
join(["a"], "");
}
CODE
dmd -c test1.d
-------
mod1.d(2): Error: alias mod1.join conflicts with alias mod1.join at mod1.d(3)
^--- mod1
It's complaining about:
import std.string: join;
import std.string: join;
--
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