Mercurial > projects > ldc
annotate tangotests/a.d @ 167:adca7f32fb6d trunk
[svn r183] Fixed broken identity expressions with two pointers of different types.
Fixed broken pointer arithmetic for subtraction (tango.text.Util unittest now passes)
author | lindquist |
---|---|
date | Tue, 06 May 2008 01:23:02 +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 } |