File: restParameterWithoutAnnotationIsAnyArray.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (66 lines) | stat: -rw-r--r-- 2,741 bytes parent folder | download | duplicates (5)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts ===
// Rest parameters without type annotations are 'any', errors only for the functions with 2 rest params

function foo(...x) { }
>foo : Symbol(foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 0, 0))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 2, 13))

var f = function foo(...x) { }
>f : Symbol(f, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 3, 3))
>foo : Symbol(foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 3, 7))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 3, 21))

var f2 = (...x, ...y) => { }
>f2 : Symbol(f2, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 4, 3))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 4, 10))
>y : Symbol(y, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 4, 15))

class C {
>C : Symbol(C, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 4, 28))

    foo(...x) { }
>foo : Symbol(C.foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 6, 9))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 7, 8))
}

interface I {
>I : Symbol(I, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 8, 1))

    (...x);
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 11, 5))

    foo(...x, ...y);
>foo : Symbol(I.foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 11, 11))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 12, 8))
>y : Symbol(y, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 12, 13))
}

var a: {
>a : Symbol(a, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 15, 3))

    (...x);
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 16, 5))

    foo(...x);
>foo : Symbol(foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 16, 11))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 17, 8))
}

var b = {
>b : Symbol(b, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 20, 3))

    foo(...x) { },
>foo : Symbol(foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 20, 9))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 21, 8))

    a: function foo(...x, ...y) { },
>a : Symbol(a, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 21, 18))
>foo : Symbol(foo, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 22, 6))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 22, 20))
>y : Symbol(y, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 22, 25))

    b: (...x) => { }
>b : Symbol(b, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 22, 36))
>x : Symbol(x, Decl(restParameterWithoutAnnotationIsAnyArray.ts, 23, 8))
}