annotate tangotests/constructors.d @ 275:665b81613475 trunk

[svn r296] Removed: the 'suite' dir, it never took off! Fixed: foreach statement, key-type checks were buggy. Fixed: setting LLVMDC versions on the command line is now an error. Fixed: array compare runtime had incorrect param attrs on call. Fixed: index expressions on dynamic array slices w/o storage was broken. Fixed: scope classes had incorrect finalization in some cases. Fixed: when outputting !ClassInfoS !OffsetTypeInfoS, static class members were trying to be included, crashing the compiler. Fixed: calling LLVMDC with -inline but not any -O option caused assertion failure. Changed: the runtime now uses a single interface to "get" to !TypeInfoS, part of eliminating duplicate !TypeInfo codegen.
author lindquist
date Thu, 19 Jun 2008 17:30:32 +0200
parents b77664331d06
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
160
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
1 import tango.io.Console;
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
2
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
3 class C
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
4 {
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
5 this()
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
6 {
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
7 Cout("C()").newline;
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
8 }
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
9 this(char[] str)
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
10 {
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
11 Cout("C(")(str)(")").newline;
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
12 }
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
13 }
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
14
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
15 class D : C
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
16 {
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
17 this()
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
18 {
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
19 super("D");
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
20 Cout("D()").newline;
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
21 }
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
22 }
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
23
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
24 void main()
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
25 {
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
26 auto c1 = new C();
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
27 auto c2 = new C("C");
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
28 auto d = new D();
b77664331d06 [svn r176] Fixed a bug with class constructors.
lindquist
parents:
diff changeset
29 }