[Issue 8442] New: [2.060 beta] Empty array enum not treated as immutable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 25 14:31:10 PDT 2012


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: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 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: -------


More information about the Digitalmars-d-bugs mailing list