https://issues.dlang.org/show_bug.cgi?id=17405
Issue ID: 17405
Summary: [module] Named module import bypass global
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Lets have:
bar.d
-----
module bar;
enum foo = "bar";
baz.d
-----
module baz;
enum foo = "baz";
app.d
-----
import std.stdio;
import bar : foo;
void main()
{
import b = baz : foo;
writeln(foo);
}
It outputs "baz" but one would expect "bar" when named import is used?.
Tested with dmd-2.074.0
--