[Issue 17405] New: [module] Named module import bypass global
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed May 17 00:09:36 PDT 2017
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: nobody at puremagic.com
Reporter: chalucha at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list