TypeScript/tests/baselines/reference/emitRestParametersFunction.types
2015-04-15 16:44:20 -07:00

12 lines
306 B
Plaintext

=== tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts ===
function bar(...rest) { }
>bar : (...rest: any[]) => void
>rest : any[]
function foo(x: number, y: string, ...rest) { }
>foo : (x: number, y: string, ...rest: any[]) => void
>x : number
>y : string
>rest : any[]