[Issue 13496] New: ArrayInitializer rule is redundant

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 18 13:44:24 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13496

          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 at puremagic.com
          Reporter: briancschott at 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.

--


More information about the Digitalmars-d-bugs mailing list