view run/mixin_09.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents f9e1d827a255
children b8c0195059d9
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Regan Heath <regan@netwin.co.nz>
// @date@	2005-03-17
// @uri@	news:opsnp8x0v923k2f5@nrage.netwin.co.nz

module dstress.run.mixin_09;

void dummy(...){
}

class A {
        template ctor(Type)
        {
                this(Type[] arr)
                {
                        foreach(Type v; arr) dummy(typeid(typeof(v)));
                }
        }

        mixin ctor!(int);
}

int main(){
	static int[] ints = [0,1,2,3];
	A a = new A(ints);
	return 0;
}