[Issue 9067] New: Can't assign values from privately included modules to enums.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 23 11:26:39 PST 2012
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 at puremagic.com
ReportedBy: gor at boloneum.com
--- Comment #0 from Gor Gyolchanyan <gor at 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: -------
More information about the Digitalmars-d-bugs
mailing list