view tangotests/e.d @ 170:6476da35a0fe trunk

[svn r186] Fixed 'delete this'.
author lindquist
date Tue, 06 May 2008 03:46:43 +0200
parents 1700239cab2e
children 68a7dd38c03c
line wrap: on
line source

extern(C) int printf(char*,...);

class MyClass
{
    this(int i = 4)
    {
        inner = this.new InnerClass;
    }

    class InnerClass : Object.Monitor
    {
        void lock() {}
        void unlock() {}
    }

    InnerClass inner;
}

void func()
{
    scope c = new MyClass(42);
}