view 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 source

// $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);