D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7286 - Array division bypasses immutable
Summary: Array division bypasses immutable
Status: RESOLVED DUPLICATE of issue 4662
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 major
Assignee: No Owner
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
 
Reported: 2012-01-12 20:34 UTC by David Simcha
Modified: 2012-01-27 23:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2012-01-12 20:34:00 UTC
The following code compiles without errors:

void main() {
    immutable double[] nums = [1.0, 2.0];
    nums[] /= 2;
}
Comment 1 yebblies 2012-01-27 23:27:05 UTC

*** This issue has been marked as a duplicate of issue 4662 ***