Files
ldc/test/nested5.d
Tomas Lindquist Olsen 5eb88f9e80 [svn r133] Fixed some problems with inlining not happening :P
Fixed problems with certain cases of deeply nested classes/functions.
2007-12-28 22:55:24 +01:00

22 lines
273 B
D

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