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