November 23, 2012 [Issue 9067] New: Can't assign values from privately included modules to enums. | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Gor Gyolchanyan <gor@boloneum.com> 2012-11-23 11:26:38 PST --- 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: ------- |
February 04, 2013 [Issue 9067] Can't assign values from privately included modules to enums. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gor Gyolchanyan | 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 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-04 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: ------- |
Copyright © 1999-2021 by the D Language Foundation