mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-12 06:49:02 +02:00
Fix a bug I noticed. Varargs were broken if preceded by tuple parameters.
This commit is contained in:
13
tests/mini/tuple_and_vararg.d
Normal file
13
tests/mini/tuple_and_vararg.d
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user