comparison tests/mini/a_1.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 tangotests/a.d@4c577c2b7229
children
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 class Foo
2 {
3 this(int j)
4 {
5 i = pi = j;
6 }
7
8 int i;
9
10 private:
11
12 int pi;
13 }
14
15 class Bar : Foo
16 {
17 this(int j)
18 {
19 super(j);
20 baz = 42;
21 }
22
23 int baz;
24 }
25
26 void func()
27 {
28 auto bar = new Bar(12);
29 }
30
31 void main()
32 {
33 func();
34 }