view test/classes7.d @ 179:c853a8a04cdc trunk

[svn r195] fixed some tango bugs (tango ticket 1093).
author lindquist
date Wed, 07 May 2008 05:45:25 +0200
parents ee302fe07296
children
line wrap: on
line source

module classes7;

class C
{
    int i=0;
    void f()
    {
        i=42;
    }
    void g()
    {
        f();
    }
}

void main()
{
    scope c = new C;
    c.g();
    assert(c.i == 42);
}