www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13496] New: ArrayInitializer rule is redundant


          Issue ID: 13496
           Summary: ArrayInitializer rule is redundant
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/grammar.html#NonVoidInitializer
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com
            Blocks: 10233

auto a = [1:2];

Matches both the ArrayInitializer rule and the ExpInitializer rule because the
ArrayInitializer rule is a copy of the AssocArrayLiteral and ArrayLiteral
rules. I suggest removing the ArrayInitializer, ArrayMemberInitialization, and
ArrayMemberInitializations rules from the language spec.

Sep 18 2014