140
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
0
|
4
|
|
5 // @author@ Nick <Nick_member@pathlink.com>
|
|
6 // @date@ 2004-08-05
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1278
|
0
|
8
|
374
|
9 module dstress.run.template_04;
|
|
10
|
0
|
11 template Bar(Y){
|
|
12 void Bar(Y param){
|
|
13 }
|
|
14 }
|
|
15
|
|
16 template Foo(alias X){
|
|
17 alias Bar!(typeof(X)) Foo;
|
|
18 }
|
|
19
|
|
20 void unused(){
|
|
21 float f = 2.1f;
|
|
22 Bar!(typeof(f))(f);
|
|
23 }
|
|
24
|
|
25 int main(){
|
|
26 float f = 1.2f;
|
|
27 mixin Foo!(f);
|
|
28 Foo(f);
|
|
29 return 0;
|
|
30 }
|