TypeScript/tests/baselines/reference/emitArrowFunctionWhenUsingArguments17_ES6.types
2015-04-16 13:08:57 -07:00

28 lines
628 B
Plaintext

=== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17_ES6.ts ===
function f() {
>f : () => () => any
var { arguments } = { arguments: "hello" };
>arguments : string
>{ arguments: "hello" } : { arguments: string; }
>arguments : string
>"hello" : string
if (Math.random()) {
>Math.random() : number
>Math.random : () => number
>Math : Math
>random : () => number
return () => arguments[0];
>() => arguments[0] : () => any
>arguments[0] : any
>arguments : IArguments
>0 : number
}
var arguments = "world";
>arguments : string
>"world" : string
}