[Issue 11206] static array can be implicitly built from items, when nested in aggregate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 3 01:18:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11206
--- Comment #16 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-03 01:18:36 PST ---
(In reply to comment #15)
> (In reply to comment #10)
> > uint[] udarr;
> > uint[1] usarr;
> >
> > int[1] arr1 = udarr; //OK
> > int[1] arr2 = usarr; //OK
>
> Mmm...I think this is a bug. Because following code is also accepted in
> compilation, and will cause runtime exception!
>
> void main()
> {
> int[4] sa;
> ulong[4] sa2 = sa;
> }
I opened bug 11426. It is a regression issue from 2.061.
--
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