Mercurial > projects > ldc
view tangotests/constructors.d @ 188:7949d3dd0341 trunk
[svn r204] Don't run complex dstress tests, they seem to be broken.
author | ChristianK |
---|---|
date | Sat, 10 May 2008 06:44:57 +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(); }