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

           Summary: Refused array op with array literal
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-07-20 12:47:14 PDT ---
void main() {
    int[] a = [0, 0];
    a[] += [10, 20][];
}


DMD 2.064alpha gives:

test.d(3): Error: invalid array operation a[] += [10, 20] (did you forget a []
?)


I think this used to work.

Maybe related to Issue 10626

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to