Mercurial > projects > ldc
annotate tangotests/a.d @ 321:571959608194 trunk
[svn r342] Fix DMD bug 2206.
Implement mixin declarations in LLVMDC.
author | ChristianK |
---|---|
date | Wed, 09 Jul 2008 17:01:08 +0200 |
parents | 4c577c2b7229 |
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 } |