www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2401] New: type definition conflicts with itself imported through different module

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 digitalmars.com
        ReportedBy: 2korden 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)


-- 
Oct 08 2008