TypeScript/tests/baselines/reference/emitArrowFunctionWhenUsingArguments07.errors.txt

10 lines
626 B
Plaintext
Raw Normal View History

2015-04-16 22:08:57 +02:00
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts(3,34): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.
2015-04-16 21:42:25 +02:00
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts (1 errors) ====
function f(arguments) {
var a = (arguments) => () => arguments;
~~~~~~~~~
2015-04-16 22:08:57 +02:00
!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.
2015-04-16 21:42:25 +02:00
}