[Issue 3948] New: Array literal assign to array of different length

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 13 04:45:15 PST 2010


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

           Summary: Array literal assign to array of different length
           Product: D
           Version: 2.041
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-03-13 04:45:14 PST ---
The compiler accepts this with no errors, but this is wrong code:

enum int[1] a = [0, 1];
void main() {}

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