comparison test/classes7.d @ 11:d3ee9efe20e2 trunk

[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing. * Now 50/51 tests compile. * Added a simple runalltests.d scripts that should be run with 'gdmd -run runalltests.d' - LLVMDC will not compile it yet.
author lindquist
date Tue, 02 Oct 2007 05:10:18 +0200
parents
children ee302fe07296
comparison
equal deleted inserted replaced
10:c0f2c47e5034 11:d3ee9efe20e2
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 == 43);
21 }