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

           Summary: Grammar does not allow invariants in struct
                    declarations
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-06-03 00:42:03 PDT ---
The following code compiles:

struct TestStruct
{
    invariant() {}
}
void main(string[] args) {}

but the specification only mentions invariants being valid inside of class
bodies. Either DMD or the specification is wrong.

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

Reply via email to