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

           Summary: Parser rejects qualifier after destructor i.e.
                    `~this() <qualifier> { }`
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: verylonglogin....@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin....@gmail.com> 2012-11-03 
14:38:17 MSK ---
---
struct S
{
    this(int)  const { } // ok
    this(this) const { } // ok
    ~this()    const { } // Error: semicolon expected following function
declaration
}
---

Workaround:
put qualifier before destructor:
---
const ~this() { } // ok
---

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

Reply via email to