comparison run/t/tuple_11_B.d @ 1296:630c47fdf443

[Issue 684] dmd should compile this david <davidl@126.com> 2006-12-13 http://d.puremagic.com/issues/show_bug.cgi?id=684
author thomask
date Sat, 30 Dec 2006 15:39:56 +0000
parents
children
comparison
equal deleted inserted replaced
1295:b5658302a26b 1296:630c47fdf443
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ david <davidl@126.com>
6 // @date@ 2006-12-13
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=684
8 // @desc@ [Issue 684] dmd should compile this
9
10 module dstress.run.t.tuple_11_B;
11
12 uint t_length = uint.max;
13 uint m_length = uint.max;
14
15 class X{
16 static template a(T...){
17 template a(M...){
18 void a(M m){
19 t_length = T.length;
20 m_length = M.length;
21 }
22 }
23 }
24 }
25
26 int main(){
27 auto x = new X();
28 x.a!(int)();
29
30 if(t_length != 1){
31 assert(0);
32 }
33 if(m_length != 0){
34 assert(0);
35 }
36
37 return 0;
38 }