TypeScript/tests/baselines/reference/emitRestParametersFunctionExpression.types
2015-04-13 14:29:37 -07:00

25 lines
1.4 KiB
Plaintext

=== tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts ===
var funcExp = (...rest) => { }
>funcExp : (...rest: any[]) => void, Symbol(funcExp, Decl(emitRestParametersFunctionExpression.ts, 0, 3))
>(...rest) => { } : (...rest: any[]) => void
>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 0, 15))
var funcExp1 = (X: number, ...rest) => { }
>funcExp1 : (X: number, ...rest: any[]) => void, Symbol(funcExp1, Decl(emitRestParametersFunctionExpression.ts, 1, 3))
>(X: number, ...rest) => { } : (X: number, ...rest: any[]) => void
>X : number, Symbol(X, Decl(emitRestParametersFunctionExpression.ts, 1, 16))
>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 1, 26))
var funcExp2 = function (...rest) { }
>funcExp2 : (...rest: any[]) => void, Symbol(funcExp2, Decl(emitRestParametersFunctionExpression.ts, 2, 3))
>function (...rest) { } : (...rest: any[]) => void
>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 2, 25))
var funcExp3 = (function (...rest) { })()
>funcExp3 : void, Symbol(funcExp3, Decl(emitRestParametersFunctionExpression.ts, 3, 3))
>(function (...rest) { })() : void
>(function (...rest) { }) : (...rest: any[]) => void
>function (...rest) { } : (...rest: any[]) => void
>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 3, 26))