Fully support params keyword in vala (not just vapis)
When attempting to use the params keyword in a in a function written in Vala (as opposed to using it to bind a C function), the params keyword is ignored when generating the method and an array and array length argument are written, but invocations are generated correctly (variadic).
void foo (params string[] pas) {
// Allow transparent element access to given values like a normal array
assert (pas.length == 2);
assert (pas[0] == "foo");
assert (pas[1] == "bar");
}
void main () {
foo ("foo", "bar");
}
Edited by Rico Tzschichholz