November 08, 2014 [Issue 13701] New: Associative array values ignore immutability | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13701 Issue ID: 13701 Summary: Associative array values ignore immutability Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Keywords: accepts-invalid Severity: normal Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: bearophile_hugs@eml.cc DMD 2.067alpha compiles and runs this without errors: void main() { immutable(int)[int] aa; aa[10] = 20; aa[10]++; } -- |
Copyright © 1999-2021 by the D Language Foundation