[Issue 5919] New: The declaration of static members depend in the order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 3 02:07:09 PDT 2011


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 at puremagic.com
        ReportedBy: rayerd.wiz at gmail.com


--- Comment #0 from Haruki Shigemori <rayerd.wiz at gmail.com> 2011-05-03 02:03:06 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: -------


More information about the Digitalmars-d-bugs mailing list