Mercurial > projects > ldc
view tests/minicomplex/constructors.d @ 1014:47f8b54f90b3
Fixed alignsize for void types. (it's one byte)
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 01 Mar 2009 01:33:08 +0100 |
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(); }