www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2401


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-06-07 05:48:51 PDT ---
Works in 2.060head.

This bug is fixed by the commit:
https://github.com/D-Programming-Language/dmd/commit/2a3db5d7afd0c26e8a0ec58ff6fb6a8cd9647de6

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