www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10302] New: Package module conflicts with package name

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

           Summary: Package module conflicts with package name
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com



Files ---
// test.d
module test;
import lib;
void main() {}

// lib/liba.d
module lib.liba;
void foo() {}

// lib/libb.d
module lib.libb;
import lib.liba;
void bar() { return foo(); }

// lib/package.d
module lib;
public import lib.liba;


Command Line (1) ---
dmd -o- test.d

(OK)

Command Line (2) ---
dmd -o- test lib\liba.d lib\libb.d

test.d(2): Error: can only import from a module, not from package lib
Error: module lib from file lib\package.d conflicts with package name lib

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 08 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10302




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/03236adb63a1d0d9ed0d9ec2cc6a7ff0792d371b
fix Issue 10302 - Package module conflicts with package name

https://github.com/D-Programming-Language/dmd/commit/54890d0316628fb0dc56dea8a55d942b3ee218bb


Issue 10302 - Package module conflicts with package name

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10302


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

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



Merged pull request:
https://github.com/D-Programming-Language/dmd/pull/2152

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