[Issue 7369] New: Inout constructor causes compiler to reject invariant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 25 18:29:25 PST 2012
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: nobody at puremagic.com
ReportedBy: smjg at iname.com
--- Comment #0 from Stewart Gordon <smjg at 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: -------
More information about the Digitalmars-d-bugs
mailing list