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

           Summary: Inout constructor causes compiler to reject invariant
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: s...@iname.com


--- Comment #0 from Stewart Gordon <s...@iname.com> 2012-01-25 18:29:24 PST ---
struct TestStruct {
    invariant() {}
    this(int data) inout {}
}
----------
bad_invariant.d(2): Error: function bad_invariant.TestStruct.__invariant () is
not callable using argument types ()
----------
(DMD 2.057 Win32)

Removing the constructor removes the error.  Changing the struct to a class
makes no difference.

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

Reply via email to