[Issue 9658] New: Setting pre-initialized field should be allowed in qualified constructor.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 6 18:34:55 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9658
Summary: Setting pre-initialized field should be allowed in
qualified constructor.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-06 18:34:54 PST ---
This code should work, but doesn't.
struct S
{
private bool _isNull = true;
this(int v) const
{
_isNull = false; // cannot modify const expression this._isNull
}
}
--
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