Mercurial > projects > dstress
diff compile/t/tuple_08_A.d @ 1277:06c7337c4bd6
[Issue 495] New: ICE passing variadic arglist to another variadic template
Bill Baxter <wbaxter@gmail.com>
2006-11-12
news:bug-495-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Sat, 23 Dec 2006 19:47:18 +0000 |
parents | |
children | daef239f37cf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/t/tuple_08_A.d Sat Dec 23 19:47:18 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Bill Baxter <wbaxter@gmail.com> +// @date@ 2006-11-12 +// @uri@ news:bug-495-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 495] New: ICE passing variadic arglist to another variadic template + +module dstress.compile.t.tuple_08_A; + +template g(T...){ + const g = T.length; +} + +template f(T...){ + const f = g!(T); +} + +static assert(f!(7, 5.6f) == 2);