How to pass more (like "...rest" unknown number) of args to another function?

I have a function:

[FONT="Courier New"]function test(arg1:int, ...rest) {
   function anotherTest(rest); [COLOR="Red"]// -> Seems not working
                               // it's just passing an array
                               // rather than a group of args[/COLOR]
}

function anotherTest(...rest) {

}[/FONT]