26 lines
538 B
Plaintext
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
|
|
}
|