File: noImplicitAnyNamelessParameter.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (37 lines) | stat: -rw-r--r-- 2,673 bytes parent folder | download | duplicates (3)
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
36
37
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(2,20): error TS7051: Parameter has a name but no type. Did you mean 'arg0: string[]'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(3,17): error TS7051: Parameter has a name but no type. Did you mean 'arg0: string'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(3,25): error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(4,19): error TS7051: Parameter has a name but no type. Did you mean 'arg0: C'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(4,22): error TS7051: Parameter has a name but no type. Did you mean 'arg1: number'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(5,20): error TS7051: Parameter has a name but no type. Did you mean 'arg0: boolean'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(5,29): error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(5,32): error TS7051: Parameter has a name but no type. Did you mean 'arg2: object'?
tests/cases/compiler/noImplicitAnyNamelessParameter.ts(5,40): error TS7051: Parameter has a name but no type. Did you mean 'arg3: undefined'?


==== tests/cases/compiler/noImplicitAnyNamelessParameter.ts (9 errors) ====
    class C { }
    declare var a: { m(...string): void }
                       ~~~~~~~~~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg0: string[]'?
    declare var b: (string, C) => void;
                    ~~~~~~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg0: string'?
                            ~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
    declare var c: { (C, number): void };
                      ~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg0: C'?
                         ~~~~~~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg1: number'?
    declare var d: { m(boolean, C, object, undefined): void }
                       ~~~~~~~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg0: boolean'?
                                ~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
                                   ~~~~~~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg2: object'?
                                           ~~~~~~~~~
!!! error TS7051: Parameter has a name but no type. Did you mean 'arg3: undefined'?
    // note: null and void do not parse correctly without a preceding parameter name