Mercurial > projects > dstress
view undefined/array_initialization_15.d @ 1557:de3b217ccd1e
[Issue 1344] Can't implicitly convert literal 0 to typedef of ulong
Russ Lewis <webmaster@villagersonline.com>
2007-07-17
http://d.puremagic.com/issues/show_bug.cgi?id=1344
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:46:24 +0000 |
parents | 561a9ae8208d |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Andrew Fedoniouk <news@terrainformatica.com> // @date@ 2005-05-13 // @uri@ news:d63bn0$11v$1@digitaldaemon.com module dstress.run.a.array_initialization_15; struct S{ int i=1; } static S[3] s= [ 1: { 2 } ]; int main(){ assert(s[0].i==1); assert(s[1].i==2); assert(s[2].i==1); return 0; }