← Back to index
|
Original Bugzilla link
Bug 9658 – Setting pre-initialized field should be allowed in qualified constructor.
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-06T18:34:00Z
Last change time
2013-03-06T23:00:53Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2013-03-06T18:34:54Z
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 } }
Comment #1
by k.hara.pg — 2013-03-06T18:45:25Z
https://github.com/D-Programming-Language/dmd/pull/1725
Comment #2
by github-bugzilla — 2013-03-06T19:58:51Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/966e15b4fe8a08345fa77c1420399ca5c1657704
fix Issue 9658 - Setting pre-initialized field should be allowed in qualified constructor.
https://github.com/D-Programming-Language/dmd/commit/d2d45966a6fdf5abfe30b3f4a2e26e3dc2e73b3d
Merge pull request #1725 from 9rnsr/fix9658 Issue 9658 - Setting pre-initialized field should be allowed in qualified constructor.