[Issue 5290] Static array literals with too few elements

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 9 11:00:23 PDT 2011


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



--- Comment #4 from bearophile_hugs at eml.cc 2011-09-09 11:00:10 PDT ---
(In reply to comment #3)
> Pull 375 does not support `int[$] = [1, 2, 3];`.

OK. This is expected.

Currenly DMD runs code like this (I don't like this, but this is working as
designed!):

int[3] arr = [1, 2];
void main() {}


I presume Pull 375 lets this kind of code pass, right?

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