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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Gor Gyolchanyan <[email protected]> 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: -------

Reply via email to