357
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Regan Heath <regan@netwin.co.nz>
|
|
6 // @date@ 2005-03-17
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3195
|
357
|
8
|
|
9 module dstress.run.mixin_10;
|
|
10
|
427
|
11 void writefln(...){
|
|
12 }
|
|
13
|
357
|
14 class A {
|
|
15 template ctor(Type)
|
|
16 {
|
|
17 this(Type[] arr)
|
|
18 {
|
697
|
19 foreach(Type v; arr)
|
|
20 {
|
|
21 writefln("%s", typeid(typeof(v)));
|
|
22 }
|
357
|
23 }
|
|
24 }
|
|
25
|
|
26 mixin ctor!(int);
|
|
27 mixin ctor!(Object);
|
|
28 }
|
|
29
|
|
30 int main(){
|
|
31 static int[] ints = [0,1,2,3];
|
|
32 A a = new A(ints);
|
|
33 return 0;
|
|
34 }
|
|
35
|