Bug 12399 – Static and selective import acts like a normal import

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-18T04:17:00Z
Last change time
2014-03-24T00:20:22Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-03-18T04:17:22Z
////////// test.d ///////// import std.stream : Stream; static import std.stream; import std.stdio; void main() { File f; } /////////////////////////// test.d(8,7): Error: std.stream.File at C:\...\std\stream.d(1907,1) conflicts with std.stdio.File at C:\...\std\stdio.d(308,1)
Comment #1 by k.hara.pg — 2014-03-18T07:42:42Z
The 'File' should match with only std.stdio.File struct. https://github.com/D-Programming-Language/dmd/pull/3391
Comment #2 by k.hara.pg — 2014-03-24T00:20:22Z
(In reply to comment #1) > The 'File' should match with only std.stdio.File struct. > > https://github.com/D-Programming-Language/dmd/pull/3391 The behavior was introduced by: https://github.com/D-Programming-Language/dmd/pull/2256 But it was reverted by: https://github.com/D-Programming-Language/dmd/pull/3395 So it's no longer issue in git-head.