915
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Victor Nakoryakov <Victor_member@pathlink.com>
|
|
6 // @date@ 2006-03-11
|
|
7 // @uri@ news:duukb8$2vvd$1@digitaldaemon.com
|
|
8
|
|
9 module dstress.run.t.template_31_D;
|
|
10
|
|
11 template C(int x, T){
|
|
12 T C(){
|
|
13 return x;
|
|
14 }
|
|
15 }
|
|
16
|
|
17 int main(){
|
|
18 const int a = 3;
|
|
19
|
|
20 auto b = C!(a, typeof(a))();
|
|
21
|
|
22 if(!is(typeof(a) : typeof(b))){
|
|
23 assert(0);
|
|
24 }
|
|
25
|
|
26 if(!is(typeof(b) : typeof(a))){
|
|
27 assert(0);
|
|
28 }
|
|
29
|
|
30 if(a != b){
|
|
31 assert(0);
|
|
32 }
|
|
33
|
|
34 return 0;
|
|
35 }
|