comparison test/nested6.d @ 129:8096ba7082db trunk

[svn r133] Fixed some problems with inlining not happening :P Fixed problems with certain cases of deeply nested classes/functions.
author lindquist
date Fri, 28 Dec 2007 22:55:24 +0100
parents e5fe8521bbfa
children d9d5d59873d8
comparison
equal deleted inserted replaced
128:e5fe8521bbfa 129:8096ba7082db
2 2
3 void main() 3 void main()
4 { 4 {
5 int i = 42; 5 int i = 42;
6 6
7 printf("Hello world %d\n", i++); 7 printf("main() %d\n", i++);
8 8
9 class C 9 class C
10 { 10 {
11 void func() 11 void func()
12 { 12 {
13 printf("Hello world %d\n", i++); 13 printf("C.func() %d\n", i++);
14 14
15 class C2 15 class C2
16 { 16 {
17 void func2() 17 void func2()
18 { 18 {
19 printf("Hello world %d\n", i++); 19 printf("C2.func2() %d\n", i++);
20 } 20 }
21 } 21 }
22 22
23 { 23 {
24 scope c2 = new C2; 24 scope c2 = new C2;