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_09;
|
|
10
|
678
|
11 void dummy(...){
|
427
|
12 }
|
|
13
|
357
|
14 class A {
|
|
15 template ctor(Type)
|
|
16 {
|
|
17 this(Type[] arr)
|
|
18 {
|
678
|
19 foreach(Type v; arr) dummy(typeid(typeof(v)));
|
357
|
20 }
|
|
21 }
|
|
22
|
|
23 mixin ctor!(int);
|
|
24 }
|
|
25
|
|
26 int main(){
|
|
27 static int[] ints = [0,1,2,3];
|
|
28 A a = new A(ints);
|
|
29 return 0;
|
|
30 }
|
|
31
|