1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
tests/cases/compiler/arguments.ts(6,8): error TS2304: Cannot find name 'arguments'.
tests/cases/compiler/arguments.ts(9,25): error TS2304: Cannot find name 'arguments'.
tests/cases/compiler/arguments.ts(10,23): error TS2304: Cannot find name 'arguments'.
tests/cases/compiler/arguments.ts(11,19): error TS2304: Cannot find name 'arguments'.
tests/cases/compiler/arguments.ts(12,23): error TS2304: Cannot find name 'arguments'.
tests/cases/compiler/arguments.ts(13,34): error TS2304: Cannot find name 'arguments'.
==== tests/cases/compiler/arguments.ts (6 errors) ====
function f() {
var x=arguments[12];
(() => arguments)();
}
(() => arguments)();
~~~~~~~~~
!!! error TS2304: Cannot find name 'arguments'.
interface I {
method(args: typeof arguments): void;
~~~~~~~~~
!!! error TS2304: Cannot find name 'arguments'.
fn: (args: typeof arguments) => void;
~~~~~~~~~
!!! error TS2304: Cannot find name 'arguments'.
(args: typeof arguments): void;
~~~~~~~~~
!!! error TS2304: Cannot find name 'arguments'.
new (args: typeof arguments): void;
~~~~~~~~~
!!! error TS2304: Cannot find name 'arguments'.
construct: new (args: typeof arguments) => void;
~~~~~~~~~
!!! error TS2304: Cannot find name 'arguments'.
}
|