http://d.puremagic.com/issues/show_bug.cgi?id=7286
Summary: Array division bypasses immutable
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from David Simcha <[email protected]> 2012-01-12 20:34:00 PST ---
The following code compiles without errors:
void main() {
immutable double[] nums = [1.0, 2.0];
nums[] /= 2;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------