File: for-inStatementsInvalid.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (185 lines) | stat: -rw-r--r-- 10,657 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
=== tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts ===
var aNumber: number;
>aNumber : Symbol(aNumber, Decl(for-inStatementsInvalid.ts, 0, 3))

for (aNumber in {}) { }
>aNumber : Symbol(aNumber, Decl(for-inStatementsInvalid.ts, 0, 3))

var aBoolean: boolean;
>aBoolean : Symbol(aBoolean, Decl(for-inStatementsInvalid.ts, 3, 3))

for (aBoolean in {}) { }
>aBoolean : Symbol(aBoolean, Decl(for-inStatementsInvalid.ts, 3, 3))

var aRegExp: RegExp;
>aRegExp : Symbol(aRegExp, Decl(for-inStatementsInvalid.ts, 6, 3))
>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))

for (aRegExp in {}) { }
>aRegExp : Symbol(aRegExp, Decl(for-inStatementsInvalid.ts, 6, 3))

for (var idx : number in {}) { }
>idx : Symbol(idx, Decl(for-inStatementsInvalid.ts, 9, 8))

function fn(): void { }
>fn : Symbol(fn, Decl(for-inStatementsInvalid.ts, 9, 32))

for (var x in fn()) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>fn : Symbol(fn, Decl(for-inStatementsInvalid.ts, 9, 32))

var c : string, d:string, e;
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))
>d : Symbol(d, Decl(for-inStatementsInvalid.ts, 14, 15))
>e : Symbol(e, Decl(for-inStatementsInvalid.ts, 14, 25))

for (var x in c || d) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))
>d : Symbol(d, Decl(for-inStatementsInvalid.ts, 14, 15))

for (var x in e ? c : d) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>e : Symbol(e, Decl(for-inStatementsInvalid.ts, 14, 25))
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))
>d : Symbol(d, Decl(for-inStatementsInvalid.ts, 14, 15))

for (var x in 42 ? c : d) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))
>d : Symbol(d, Decl(for-inStatementsInvalid.ts, 14, 15))

for (var x in '' ? c : d) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))
>d : Symbol(d, Decl(for-inStatementsInvalid.ts, 14, 15))

for (var x in 42 ? d[x] : c[x]) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>d : Symbol(d, Decl(for-inStatementsInvalid.ts, 14, 15))
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)

for (var x in c[23]) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>c : Symbol(c, Decl(for-inStatementsInvalid.ts, 14, 3))

for (var x in (<T>(x: T) => x)) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>T : Symbol(T, Decl(for-inStatementsInvalid.ts, 23, 16))
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 23, 19))
>T : Symbol(T, Decl(for-inStatementsInvalid.ts, 23, 16))
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 23, 19))

for (var x in function (x: string, y: number) { return x + y }) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 24, 24))
>y : Symbol(y, Decl(for-inStatementsInvalid.ts, 24, 34))
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 24, 24))
>y : Symbol(y, Decl(for-inStatementsInvalid.ts, 24, 34))

class A {
>A : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))

    biz() : number{
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        for (var x in this.biz()) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 28, 16), Decl(for-inStatementsInvalid.ts, 29, 16), Decl(for-inStatementsInvalid.ts, 30, 16))
>this.biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))
>this : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        for (var x in this.biz) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 28, 16), Decl(for-inStatementsInvalid.ts, 29, 16), Decl(for-inStatementsInvalid.ts, 30, 16))
>this.biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))
>this : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        for (var x in this) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 28, 16), Decl(for-inStatementsInvalid.ts, 29, 16), Decl(for-inStatementsInvalid.ts, 30, 16))
>this : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))

        return null;
    }

    static baz() : number {
>baz : Symbol(A.baz, Decl(for-inStatementsInvalid.ts, 32, 5))

        for (var x in this) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 35, 16), Decl(for-inStatementsInvalid.ts, 36, 16), Decl(for-inStatementsInvalid.ts, 37, 16))
>this : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))

        for (var x in this.baz) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 35, 16), Decl(for-inStatementsInvalid.ts, 36, 16), Decl(for-inStatementsInvalid.ts, 37, 16))
>this.baz : Symbol(A.baz, Decl(for-inStatementsInvalid.ts, 32, 5))
>this : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))
>baz : Symbol(A.baz, Decl(for-inStatementsInvalid.ts, 32, 5))

        for (var x in this.baz()) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 35, 16), Decl(for-inStatementsInvalid.ts, 36, 16), Decl(for-inStatementsInvalid.ts, 37, 16))
>this.baz : Symbol(A.baz, Decl(for-inStatementsInvalid.ts, 32, 5))
>this : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))
>baz : Symbol(A.baz, Decl(for-inStatementsInvalid.ts, 32, 5))

        return null;
    }
}

class B extends A {
>B : Symbol(B, Decl(for-inStatementsInvalid.ts, 41, 1))
>A : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))

    boz() {
>boz : Symbol(B.boz, Decl(for-inStatementsInvalid.ts, 43, 19))

        for (var x in this.biz()) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 45, 16), Decl(for-inStatementsInvalid.ts, 46, 16), Decl(for-inStatementsInvalid.ts, 47, 16), Decl(for-inStatementsInvalid.ts, 49, 16), Decl(for-inStatementsInvalid.ts, 50, 16))
>this.biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))
>this : Symbol(B, Decl(for-inStatementsInvalid.ts, 41, 1))
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        for (var x in this.biz) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 45, 16), Decl(for-inStatementsInvalid.ts, 46, 16), Decl(for-inStatementsInvalid.ts, 47, 16), Decl(for-inStatementsInvalid.ts, 49, 16), Decl(for-inStatementsInvalid.ts, 50, 16))
>this.biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))
>this : Symbol(B, Decl(for-inStatementsInvalid.ts, 41, 1))
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        for (var x in this) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 45, 16), Decl(for-inStatementsInvalid.ts, 46, 16), Decl(for-inStatementsInvalid.ts, 47, 16), Decl(for-inStatementsInvalid.ts, 49, 16), Decl(for-inStatementsInvalid.ts, 50, 16))
>this : Symbol(B, Decl(for-inStatementsInvalid.ts, 41, 1))

        for (var x in super.biz) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 45, 16), Decl(for-inStatementsInvalid.ts, 46, 16), Decl(for-inStatementsInvalid.ts, 47, 16), Decl(for-inStatementsInvalid.ts, 49, 16), Decl(for-inStatementsInvalid.ts, 50, 16))
>super.biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))
>super : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        for (var x in super.biz()) { }
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 45, 16), Decl(for-inStatementsInvalid.ts, 46, 16), Decl(for-inStatementsInvalid.ts, 47, 16), Decl(for-inStatementsInvalid.ts, 49, 16), Decl(for-inStatementsInvalid.ts, 50, 16))
>super.biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))
>super : Symbol(A, Decl(for-inStatementsInvalid.ts, 24, 67))
>biz : Symbol(A.biz, Decl(for-inStatementsInvalid.ts, 26, 9))

        return null;
    }
}

interface I {
>I : Symbol(I, Decl(for-inStatementsInvalid.ts, 53, 1))

    id: number;
>id : Symbol(I.id, Decl(for-inStatementsInvalid.ts, 55, 13))

    [idx: number]: number;
>idx : Symbol(idx, Decl(for-inStatementsInvalid.ts, 57, 5))
}
var i: I;
>i : Symbol(i, Decl(for-inStatementsInvalid.ts, 59, 3))
>I : Symbol(I, Decl(for-inStatementsInvalid.ts, 53, 1))

for (var x in i[42]) { } 
>x : Symbol(x, Decl(for-inStatementsInvalid.ts, 12, 8), Decl(for-inStatementsInvalid.ts, 16, 8), Decl(for-inStatementsInvalid.ts, 17, 8), Decl(for-inStatementsInvalid.ts, 18, 8), Decl(for-inStatementsInvalid.ts, 19, 8) ... and 5 more)
>i : Symbol(i, Decl(for-inStatementsInvalid.ts, 59, 3))