32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
=== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19_ES6.ts ===
|
|
|
|
function f() {
|
|
>f : Symbol(f, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 0, 0))
|
|
|
|
function g() {
|
|
>g : Symbol(g, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 1, 14))
|
|
|
|
var _arguments = 10; // No capture in 'g', so no conflict.
|
|
>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 3, 11))
|
|
|
|
function h() {
|
|
>h : Symbol(h, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 3, 28))
|
|
|
|
var capture = () => arguments; // Should trigger an '_arguments' capture into function 'h'
|
|
>capture : Symbol(capture, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 5, 15))
|
|
>arguments : Symbol(arguments)
|
|
|
|
foo(_arguments); // Error as this does not resolve to the user defined '_arguments'
|
|
>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 8, 5))
|
|
>_arguments : Symbol(_arguments, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 3, 11))
|
|
}
|
|
}
|
|
|
|
function foo(x: any) {
|
|
>foo : Symbol(foo, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 8, 5))
|
|
>x : Symbol(x, Decl(emitArrowFunctionWhenUsingArguments19_ES6.ts, 10, 17))
|
|
|
|
return 100;
|
|
}
|
|
}
|