Only the last param can be varargs. Any args that are passed this way will be passed to the function as an array. inferFuncs will need to be updated to handle this. We also need a way to mark a param on TFun as variadic. We could introduce an ERest node for this (and then reuse it for object/array/tuple rest).
Only the last param can be varargs. Any args that are passed this way will be passed to the function as an array.
inferFuncs
will need to be updated to handle this. We also need a way to mark a param onTFun
as variadic. We could introduce anERest
node for this (and then reuse it for object/array/tuple rest).