Fix a bug I noticed. Varargs were broken if preceded by tuple parameters.

This commit is contained in:
Frits van Bommel
2009-03-30 00:00:43 +02:00
parent 972fca5729
commit b7ca040f7c
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
// 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);
}