Thread overview
[Issue 12399] New: Static and selective import acts like a normal import
Mar 18, 2014
Vladimir Panteleev
Mar 18, 2014
Kenji Hara
Mar 24, 2014
Kenji Hara
March 18, 2014
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


--- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2014-03-18 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: -------
March 18, 2014
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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2014-03-18 07:42:42 PDT ---
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: -------
March 24, 2014
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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2014-03-24 00:20:22 PDT ---
(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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------