Mercurial > projects > ldc
view tests/mini/foreach6.d @ 773:5696a7167b21
Fix RawVarDecl double codegen bug. Thanks to downs for the testcase.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 18 Nov 2008 18:07:57 +0100 |
parents | 30b42a283c8e |
children |
line wrap: on
line source
module mini.foreach6; struct S { long l; float f; } void main() { S[4] arr = void; foreach(i,v;arr) { v = S(i, i*2.5); } }