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

           Summary: Immutability is broken in module constructor
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bugzi...@kyllingen.net


--- Comment #0 from Lars T. Kyllingstad <bugzi...@kyllingen.net> 2010-11-12 
07:23:03 PST ---
Example:

    immutable int i;

    static this()
    {
        assert (i == 0);
        i = 1;
        assert (i == 1);
    }

The compiler should give a "variable not initialised" error on the first
assert.

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

Reply via email to