Mercurial > projects > dstress
annotate run/template_03.d @ 1:3414705c41ac
removed CVS header
author | thomask |
---|---|
date | Sun, 26 Sep 2004 12:06:09 +0000 |
parents | 3269e4627918 |
children | 5f98d4a33d49 |
rev | line source |
---|---|
0 | 1 |
2 // @author@ Nick <Nick_member@pathlink.com> | |
3 // @date@ 2004-08-05 | |
4 // @uri@ news://cetp3r$1rrc$1@digitaldaemon.com | |
5 | |
6 template Bar(Y){ | |
7 void Bar(Y param){ | |
8 } | |
9 } | |
10 | |
11 template Foo(alias X){ | |
12 alias Bar!(typeof(X)) Foo; | |
13 } | |
14 | |
15 int main(){ | |
16 float f = 1.2f; | |
17 mixin Foo!(f); | |
18 Foo(f); | |
19 return 0; | |
20 } |