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

           Summary: [2.060 beta] Empty array enum not treated as immutable
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Nick Sabalausky <[email protected]> 2012-07-25 
14:31:08 PDT ---
-------------------------------------
enum int[] fooEnum = [];
immutable fooImmutable = fooEnum;
-------------------------------------
testImmutableEnum.d(2): Error: cannot implicitly convert expression ([]) of
type int[] to immutable(int[])
-------------------------------------

Worked on 2.059. If fooEnum is *not* empty, the problem disappears.

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

Reply via email to