view tangotests/constructors.d @ 245:d61ce72c39ab trunk

[svn r262] Fixed debug info for normal function parameters. Fixed debug info for pointers to basic types.
author lindquist
date Mon, 09 Jun 2008 12:43:16 +0200
parents b77664331d06
children
line wrap: on
line source

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();
}