Mercurial > projects > ldc
view tests/minicomplex/constructors.d @ 1622:a542ef277a84
Merge DMD r316: bugzilla 3628 can't cast null to int
---
dmd/constfold.c | 2 +-
dmd/optimize.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:22 -0300 |
parents | 4ac97ec7c18e |
children |
line wrap: on
line source
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(); }