146
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Regan Heath <regan@netwin.co.nz>
|
|
6 // @date@ 2004-11-18
|
|
7 // @uri@ news:opshmqmfrn5a2sq9@digitalmars.com
|
1487
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2306
|
146
|
9
|
|
10 module dstress.run.bug_mangle_61_A;
|
|
11
|
|
12 template test(T:T[],alias S) {
|
|
13 char[] foo(T[] a, T[] b) {
|
|
14 return a ~ S ~ b;
|
|
15 }
|
|
16 }
|
|
17
|
|
18 alias test!(char[],comma).foo catComma;
|
|
19 char[] comma = ", ";
|
|
20
|
|
21 int main(){
|
|
22 char[] a = "Heath";
|
|
23 char[] b = "Regan";
|
|
24
|
|
25 assert("Heath, Regan"==catComma(a,b));
|
|
26
|
|
27 return 0;
|
|
28 }
|