Files
tsgo/testdata/baselines/reference/submodule/conformance/asyncArrowFunctionCapturesArguments_es6.errors.txt

16 lines
607 B
Plaintext

asyncArrowFunctionCapturesArguments_es6.ts(4,52): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[]'.
==== asyncArrowFunctionCapturesArguments_es6.ts (1 errors) ====
class C {
method() {
function other() {}
var fn = async () => await other.apply(this, arguments);
~~~~~~~~~
!!! error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[]'.
}
}
function f() {
return async () => async () => arguments.length;
}