Bug 3212 – Error message says "mutable"; should say "immutable"
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-07-27T06:42:00Z
Last change time
2015-06-09T01:28:06Z
Keywords
diagnostic
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2009-07-27T06:42:16Z
immutable int i;
i = 123;
Compiling the above results in the error: "cannot modify mutable"
I suppose this should be "cannot modify immutable", and the problem lies at line 143 of declaration.c:
else if (isInvariant())
p = "mutable";