view test/nested2.d @ 83:339422268de1 trunk

[svn r87] Fixed some memory bloat when passing string literals as char[] params (double temporary before)
author lindquist
date Fri, 02 Nov 2007 02:03:13 +0100
parents f918f3e2e99e
children
line wrap: on
line source

module nested2;

void func(ref int i)
{
    delegate {
        assert(i == 3);
        i++;
    }();
}

void main()
{
    int i = 3;
    func(i);
    assert(i == 4);
}