Mercurial > projects > dstress
comparison run/t/tuple_11_G.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_G; | |
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 X.a!(creal)(); | |
28 | |
29 if(t_length != 1){ | |
30 assert(0); | |
31 } | |
32 if(m_length != 0){ | |
33 assert(0); | |
34 } | |
35 | |
36 return 0; | |
37 } |