[Issue 6554] New: Refused two imports of the same module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 25 02:43:23 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6554

           Summary: Refused two imports of the same module
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-08-25 02:43:17 PDT ---
This code:

import std.bigint;
void main() {
    import std.bigInt;
}


DMD 2.055head gives this error:

test.d(3): Error: module std.bigint from file ...\src\phobos\std\bigInt.d
conflicts with another module bigint from file ...\src\phobos\std\bigint.d


While this code compiles with no errors:

import std.stdio;
void main() {
    import std.stdio;
}


I think those cases can't be both correct.

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


More information about the Digitalmars-d-bugs mailing list