[Issue 3212] New: Error message says "mutable"; should say "immutable"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 27 06:42:17 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3212

           Summary: Error message says "mutable"; should say "immutable"
           Product: D
           Version: 2.031
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at kyllingen.net


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";

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list