view test/nested5.d @ 223:5ffca623b5df trunk

[svn r239] also use indirect modifier for update constraints
author ChristianK
date Fri, 06 Jun 2008 21:51:40 +0200
parents 8096ba7082db
children d9d5d59873d8
line wrap: on
line source

module nested5;

void main()
{
    int i = 42;

    printf("Hello world %d\n", i++);

    class C
    {
        void func()
        {
            printf("Hello world %d\n", i++);
            //i++;
        }
    }

    scope c = new C;
    c.func();
    assert(i == 44);
}