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

           Summary: The order of static and shared on module constructors
                    matters when it shouldn't
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jonathan M Davis <[email protected]> 2013-04-01 18:36:12 
PDT ---
This code

static shared this()
{
}

void main()
{
}

fails to compile, giving this error:

q.d(1): Error: constructor q.this constructors are only for class or struct
definitions

whereas if the static and shared are swapped, it compiles just fine. The order
shouldn't matter.

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

Reply via email to