← Back to index
|
Original Bugzilla link
Bug 7286 – Array division bypasses immutable
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2012-01-12T20:34:00Z
Last change time
2012-01-27T23:27:05Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0
by dsimcha — 2012-01-12T20:34:00Z
The following code compiles without errors: void main() { immutable double[] nums = [1.0, 2.0]; nums[] /= 2; }
Comment #1
by yebblies — 2012-01-27T23:27:05Z
*** This issue has been marked as a duplicate of issue 4662 ***