[Issue 8019] New: (D1 only) can't convert [] to int[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 2 21:54:42 PDT 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 at puremagic.com
ReportedBy: yuri.musashi.miwa.tamura at gmail.com
--- Comment #0 from Musashi Yamada <yuri.musashi.miwa.tamura at 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: -------
More information about the Digitalmars-d-bugs
mailing list