www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5919] New: The declaration of static members depend in the order

http://d.puremagic.com/issues/show_bug.cgi?id=5919

           Summary: The declaration of static members depend in the order
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: rayerd.wiz gmail.com



PDT ---
class C
{
    static ushort x = y;
    static const ushort y = 1;
}

void main() {}

main.d(3): Error: variable y cannot be read at compile time

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 03 2011