Mercurial > projects > ldc
view tests/minicomplex/constructors.d @ 1342:16d9afa22df4
Fix DtoArrayCopyToSlice by passing length*sizeof(element) instead of just length to _d_array_slice_copy.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 22:26:04 +0200 |
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(); }