Mercurial > projects > ldc
view test/foreach7.d @ 201:8f9191180c7a trunk
[svn r217] Updated: the rebuild profiles.
Fixed: way to find class data fields was too strict type wise.
Fixed: foreach resulting in an implicit delegate could fail.
author | lindquist |
---|---|
date | Mon, 12 May 2008 22:44:25 +0200 |
parents | b706170e24a9 |
children |
line wrap: on
line source
module foreach7; void main() { int[4] a = [1,2,3,4]; int i; foreach(v; a[0..3]) { i += v; } assert(i == 6); }