25 lines
538 B
Text
25 lines
538 B
Text
=== 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
|
|
}
|