Files
ldc/test/classes7.d
Tomas Lindquist Olsen 6e85d0f89e [svn r16] * Updated all tests to have a main
* Updated runalltests to both compile and run the tests
2007-10-02 05:27:44 +02:00

22 lines
192 B
D

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);
}