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

--- Comment #0 from Stewart Gordon <> 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:
------- You are receiving this mail because: -------

Reply via email to