[Issue 2401] New: type definition conflicts with itself imported through different module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 8 12:50:01 PDT 2008


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

           Summary: type definition conflicts with itself imported through
                    different module
           Product: D
           Version: 2.019
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: 2korden at gmail.com


module m1;
alias int Foo;

module m2;
import m1 : Foo;

module m;
import m1;
import m2;

Foo bar = 42;

m.d(5): Error: m1.Foo at m1.d(3) conflicts with m2.Foo at m2.d(2)


-- 



More information about the Digitalmars-d-bugs mailing list