http://d.puremagic.com/issues/show_bug.cgi?id=2477
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[EMAIL PROTECTED]
Keywords| |diagnostic, spec
------- Comment #1 from [EMAIL PROTECTED] 2008-11-30 19:20 -------
The problem is that the spec is inconsistent. In the first case, it's not an
array literal, but an array initializer.
ArrayInitializer:
[ ]
[ ArrayMemberInitializations ]
ArrayMemberInitializations:
ArrayMemberInitialization
ArrayMemberInitialization ,
ArrayMemberInitialization , ArrayMemberInitializations
versus
ArrayLiteral:
[ ArgumentList ]
ArgumentList:
AssignExpression
AssignExpression , ArgumentList
Making these consistent is technically an enhancement request rather than a
bug. I nearly set this to enhancement, but the second issue (repetition of the
error message) qualifies as a bug IMO.
--