Created separate tests directory for D1.

This commit is contained in:
David Nadlinger
2012-08-29 11:16:42 +02:00
parent 837ef30fec
commit 1645eff596
27 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
module constructors;
import tango.io.Console;
class C
{
this()
{
Cout("C()").newline;
}
this(char[] str)
{
Cout("C(")(str)(")").newline;
}
}
class D : C
{
this()
{
super("D");
Cout("D()").newline;
}
}
void main()
{
auto c1 = new C();
auto c2 = new C("C");
auto d = new D();
}