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

           Summary: Selective import results in conflicting definition.
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: st...@despam.it


--- Comment #0 from st...@despam.it 2010-11-03 18:33:47 PDT ---
The code below results in:
i.d(6): Error: b.B at b.d(3) conflicts with c.B at c.d(4)

--
module main;

import c;

void main(){}
--
module c;

import i;
import b : B;
//public import b; // using this line instead fixes it
--
module i;

import b;
import c;

B i;
--
module b;

struct B{
  int b;
}
--

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

Reply via email to