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

26 lines
538 B
Plaintext

=== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16_ES6.ts ===
function f() {
>f : () => () => any
var arguments = "hello";
>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
}