818
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Don Clugston <dac@nospam.com.au>
|
|
6 // @date@ 2006-02-08
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6186
|
818
|
8
|
|
9 module dstress.run.t.template_27_C;
|
|
10
|
|
11 template frog(char F){
|
|
12 const int frog = 1;
|
|
13 }
|
|
14
|
|
15 template frog(int F){
|
|
16 const int frog = 2;
|
|
17 }
|
|
18
|
|
19 template frog(char F: 'A'){
|
|
20 const int frog = 3;
|
|
21 }
|
|
22
|
|
23 template frog(int F: 65){
|
|
24 const int frog = 4;
|
|
25 }
|
|
26
|
|
27 int main(){
|
|
28 static assert(frog!('A') == 3);
|
|
29 return 0;
|
|
30 }
|
|
31
|
|
32
|