www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12399] New: Static and selective import acts like a normal import

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12399

           Summary: Static and selective import acts like a normal import
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com



13:17:22 EET ---
////////// 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)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12399


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



The 'File' should match with only std.stdio.File struct.

https://github.com/D-Programming-Language/dmd/pull/3391

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12399


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|pull                        |
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




 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. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 24 2014