digitalmars.D.bugs - [Issue 9067] New: Can't assign values from privately included modules to enums.
- d-bugmail puremagic.com (42/42) Nov 23 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9067
- d-bugmail puremagic.com (14/14) Feb 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9067
http://d.puremagic.com/issues/show_bug.cgi?id=9067 Summary: Can't assign values from privately included modules to enums. Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: gor boloneum.com --- Here's a pair of code, the first of which doesn't compile and the second of which does compile. //------------------------------------------------------------------------------ module foo; public: enum Count { one = bar.one, two = bar.two, three = bar.three, } private: import bar; // foo.d(6): Error: undefined identifier bar.one //------------------------------------------------------------------------------ module foo; public: import bar; enum Count { one = bar.one, two = bar.two, three = bar.three, } //------------------------------------------------------------------------------ -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 23 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9067 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |INVALID 11:25:50 PST --- And where is 'bar' defined? Anyway if I manually define the bar module with those identifiers both samples work. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2013