view tests/mini/foreach6.d @ 733:cc8ba72c0350

Nested access to with statement should work now. fixes #105
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 27 Oct 2008 01:40:47 +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);
    }
}