13 lines
No EOL
670 B
Text
13 lines
No EOL
670 B
Text
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts(5,22): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.
|
|
|
|
|
|
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts (1 errors) ====
|
|
|
|
function f() {
|
|
if (Math.random()) {
|
|
const arguments = 100;
|
|
return () => arguments;
|
|
~~~~~~~~~
|
|
!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.
|
|
}
|
|
} |