May 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8019

           Summary: (D1 only) can't convert [] to int[]
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: yuri.musashi.miwa.tamura@gmail.com


--- Comment #0 from Musashi Yamada <yuri.musashi.miwa.tamura@gmail.com> 2012-05-02 21:55:54 PDT ---
void main() {
    int i;
    int[] a;
    a = i ? [] : [1];
}

bug.d(4): Error: cannot implicitly convert expression (i ? [] :
cast(void[])[1])
 of type void[] to int[]

This error is present in 1.074, not in 1.070 and 2.059.

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