793
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Don Clugston <dac@nospam.com.au>
|
|
6 // @date@ 2006-01-12
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6004
|
793
|
8
|
|
9 module dstress.run.t.template_23_A;
|
|
10
|
|
11 template whale(char walrus){
|
|
12 const char whale = walrus;
|
|
13 }
|
|
14
|
|
15 template dolphin(char[] fish){
|
|
16 const char dolphin = whale!((fish[4]));
|
|
17 }
|
|
18
|
|
19 const char urchin = dolphin!("anenome");
|
|
20
|
|
21 int main(){
|
|
22 static assert(urchin == 'o');
|
|
23 return 0;
|
|
24 }
|