view test/nested5.d @ 128:e5fe8521bbfa trunk

[svn r132] Added some tests. some will fail at the moment.
author lindquist
date Fri, 30 Nov 2007 17:12:08 +0100
parents
children 8096ba7082db
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++);
        }
    }

    scope c = new C;
    c.func();
}