comparison 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
comparison
equal deleted inserted replaced
1177:a8b9fc41c34b 1178:a668f4051368
1 // Based on dstress.run.t.tuple_15_A;
2
3 module tuple_and_vararg;
4
5 template TypeTuple(TList...){
6 alias TList TypeTuple;
7 }
8
9 void main(){
10 auto y = function(TypeTuple!(uint,uint) ab, ...){};
11 y(1, 2);
12 y(1, 2, "foo", 3.0);
13 }