Bug 12405 – Named imports act like regular imports

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-18T16:48:00Z
Last change time
2014-03-24T00:16:30Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-03-18T16:48:42Z
Is this supposed to work? /////// test.d /////// import io = std.stdio; void main() { writeln(); } ////////////////////// In DMD master, it compiles fine. In 2.065, it produces an error (writeln not defined).
Comment #1 by bearophile_hugs — 2014-03-18T17:18:08Z
It should not work.
Comment #2 by k.hara.pg — 2014-03-24T00:15:34Z
Comment #3 by dlang-bugzilla — 2014-03-24T00:16:30Z
Maybe it should be added to the test suite?