[Issue 5161] New: Selective import results in conflicting definition.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 3 18:34:44 PDT 2010
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: nobody at puremagic.com
ReportedBy: strtr at despam.it
--- Comment #0 from strtr at 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: -------
More information about the Digitalmars-d-bugs
mailing list