comparison test/nested5.d @ 128:e5fe8521bbfa trunk

[svn r132] Added some tests. some will fail at the moment.
author lindquist
date Fri, 30 Nov 2007 17:12:08 +0100
parents
children 8096ba7082db
comparison
equal deleted inserted replaced
127:facc562f5674 128:e5fe8521bbfa
1 module nested5;
2
3 void main()
4 {
5 int i = 42;
6
7 printf("Hello world %d\n", i++);
8
9 class C
10 {
11 void func()
12 {
13 printf("Hello world %d\n", i++);
14 }
15 }
16
17 scope c = new C;
18 c.func();
19 }