May 17, 2017 [Issue 17405] New: [module] Named module import bypass global | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: chalucha@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 -- |
Copyright © 1999-2021 by the D Language Foundation