[Issue 13701] New: Associative array values ignore immutability

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Nov 8 05:20:22 PST 2014


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 at puremagic.com
          Reporter: bearophile_hugs at eml.cc

DMD 2.067alpha compiles and runs this without errors:


void main() {
    immutable(int)[int] aa;
    aa[10] = 20;
    aa[10]++;
}

--


More information about the Digitalmars-d-bugs mailing list