Mercurial > projects > ldc
annotate tests/mini/a_1.d @ 829:0a31c60a6bc1
.. and fixed the install target (hopefully)
author | elrood |
---|---|
date | Fri, 05 Dec 2008 22:01:50 +0100 |
parents | 1bb99290e03a |
children |
rev | line source |
---|---|
132 | 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 } | |
149
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
30 |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
31 void main() |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
32 { |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
33 func(); |
4c577c2b7229
[svn r155] Fixed a bunch of linkage problems (especially with templates)
lindquist
parents:
132
diff
changeset
|
34 } |