view tests/mini/tuple_and_vararg.d @ 1178:a668f4051368

Fix a bug I noticed. Varargs were broken if preceded by tuple parameters.
author Frits van Bommel <fvbommel wxs.nl>
date Mon, 30 Mar 2009 00:00:43 +0200
parents
children
line wrap: on
line source

// Based on dstress.run.t.tuple_15_A;

module tuple_and_vararg;

template TypeTuple(TList...){
	alias TList TypeTuple;
}

void main(){
	auto y = function(TypeTuple!(uint,uint) ab, ...){};
        y(1, 2);
        y(1, 2, "foo", 3.0);
}