view test/memory1.d @ 68:c4b3f5d2cd9b trunk

[svn r72] Calling a nested function that is not a delegate was not working.
author lindquist
date Sun, 28 Oct 2007 03:14:29 +0100
parents 4648206ca213
children 44a95ac7368a
line wrap: on
line source

module memory1;

void main()
{
    auto a = new int[16];
    {printf("array.length = %u\n", a.length);}
    {a.length = a.length + 1;}
    {printf("array.length = %u\n", a.length);}
    {assert(a.length == 17);}
}