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

           Summary: Casting away immutable modifier does nothing
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: rofflwaf...@gmail.com


--- Comment #0 from Tony Young <rofflwaf...@gmail.com> 2011-09-05 06:52:33 PDT 
---
Created an attachment (id=1021)
Test case.

DMD2 cannot cast away the immutable modifier a variable, or raise a suitable
error for it.

Attached code outputs:
0
0
0
2

Where the following is expected:
0
2
0
2

... or some kind of error.

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

Reply via email to