comparison tests/mini/classes7.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/classes7.d@ee302fe07296
children
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module classes7;
2
3 class C
4 {
5 int i=0;
6 void f()
7 {
8 i=42;
9 }
10 void g()
11 {
12 f();
13 }
14 }
15
16 void main()
17 {
18 scope c = new C;
19 c.g();
20 assert(c.i == 42);
21 }