File: objectSpreadRepeatedComplexity.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 (203 lines) | stat: -rw-r--r-- 6,501 bytes parent folder | download | duplicates (4)
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
=== tests/cases/conformance/types/spread/objectSpreadRepeatedComplexity.ts ===
function f(cnd: Record<number, boolean>){
>f : Symbol(f, Decl(objectSpreadRepeatedComplexity.ts, 0, 0))
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))

    // Type is a union of 2^(n-1) members, where n is the number of spread objects
    return {
        // Without this one, it collapses to {} ?
        ...(cnd[1] &&
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            cnd[2] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop0: 0,
>prop0 : Symbol(prop0, Decl(objectSpreadRepeatedComplexity.ts, 5, 23))

        }),

        // With one prop each, it collapses to a single object (#34853?)
        ...(cnd[3] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop3a: 1,
>prop3a : Symbol(prop3a, Decl(objectSpreadRepeatedComplexity.ts, 10, 23))

            prop3b: 1,
>prop3b : Symbol(prop3b, Decl(objectSpreadRepeatedComplexity.ts, 11, 22))

        }),
        ...(cnd[4] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop4a: 1,
>prop4a : Symbol(prop4a, Decl(objectSpreadRepeatedComplexity.ts, 14, 23))

            prop4b: 1,
>prop4b : Symbol(prop4b, Decl(objectSpreadRepeatedComplexity.ts, 15, 22))

        }),
        ...(cnd[5] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop5a: 1,
>prop5a : Symbol(prop5a, Decl(objectSpreadRepeatedComplexity.ts, 18, 23))

            prop5b: 1,
>prop5b : Symbol(prop5b, Decl(objectSpreadRepeatedComplexity.ts, 19, 22))

        }),
        ...(cnd[6] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop6a: 1,
>prop6a : Symbol(prop6a, Decl(objectSpreadRepeatedComplexity.ts, 22, 23))

            prop6b: 1,
>prop6b : Symbol(prop6b, Decl(objectSpreadRepeatedComplexity.ts, 23, 22))

        }),
        ...(cnd[7] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop7a: 1,
>prop7a : Symbol(prop7a, Decl(objectSpreadRepeatedComplexity.ts, 26, 23))

            prop7b: 1,
>prop7b : Symbol(prop7b, Decl(objectSpreadRepeatedComplexity.ts, 27, 22))

        }),
        ...(cnd[8] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop8a: 1,
>prop8a : Symbol(prop8a, Decl(objectSpreadRepeatedComplexity.ts, 30, 23))

            prop8b: 1,
>prop8b : Symbol(prop8b, Decl(objectSpreadRepeatedComplexity.ts, 31, 22))

        }),
        ...(cnd[9] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop9a: 1,
>prop9a : Symbol(prop9a, Decl(objectSpreadRepeatedComplexity.ts, 34, 23))

            prop9b: 1,
>prop9b : Symbol(prop9b, Decl(objectSpreadRepeatedComplexity.ts, 35, 22))

        }),
        ...(cnd[10] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop10a: 1,
>prop10a : Symbol(prop10a, Decl(objectSpreadRepeatedComplexity.ts, 38, 24))

            prop10b: 1,
>prop10b : Symbol(prop10b, Decl(objectSpreadRepeatedComplexity.ts, 39, 23))

        }),
        ...(cnd[11] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop11a: 1,
>prop11a : Symbol(prop11a, Decl(objectSpreadRepeatedComplexity.ts, 42, 24))

            prop11b: 1,
>prop11b : Symbol(prop11b, Decl(objectSpreadRepeatedComplexity.ts, 43, 23))

        }),
        ...(cnd[12] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop12a: 1,
>prop12a : Symbol(prop12a, Decl(objectSpreadRepeatedComplexity.ts, 46, 24))

            prop12b: 1,
>prop12b : Symbol(prop12b, Decl(objectSpreadRepeatedComplexity.ts, 47, 23))

        }),
        ...(cnd[13] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop13a: 1,
>prop13a : Symbol(prop13a, Decl(objectSpreadRepeatedComplexity.ts, 50, 24))

            prop13b: 1,
>prop13b : Symbol(prop13b, Decl(objectSpreadRepeatedComplexity.ts, 51, 23))

        }),
        ...(cnd[14] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop14a: 1,
>prop14a : Symbol(prop14a, Decl(objectSpreadRepeatedComplexity.ts, 54, 24))

            prop14b: 1,
>prop14b : Symbol(prop14b, Decl(objectSpreadRepeatedComplexity.ts, 55, 23))

        }),
        ...(cnd[15] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop15a: 1,
>prop15a : Symbol(prop15a, Decl(objectSpreadRepeatedComplexity.ts, 58, 24))

            prop15b: 1,
>prop15b : Symbol(prop15b, Decl(objectSpreadRepeatedComplexity.ts, 59, 23))

        }),
        ...(cnd[16] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop16a: 1,
>prop16a : Symbol(prop16a, Decl(objectSpreadRepeatedComplexity.ts, 62, 24))

            prop16b: 1,
>prop16b : Symbol(prop16b, Decl(objectSpreadRepeatedComplexity.ts, 63, 23))

        }),
        ...(cnd[17] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop17a: 1,
>prop17a : Symbol(prop17a, Decl(objectSpreadRepeatedComplexity.ts, 66, 24))

            prop17b: 1,
>prop17b : Symbol(prop17b, Decl(objectSpreadRepeatedComplexity.ts, 67, 23))

        }),
        ...(cnd[18] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop18a: 1,
>prop18a : Symbol(prop18a, Decl(objectSpreadRepeatedComplexity.ts, 70, 24))

            prop18b: 1,
>prop18b : Symbol(prop18b, Decl(objectSpreadRepeatedComplexity.ts, 71, 23))

        }),
        ...(cnd[19] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop19a: 1,
>prop19a : Symbol(prop19a, Decl(objectSpreadRepeatedComplexity.ts, 74, 24))

            prop19b: 1,
>prop19b : Symbol(prop19b, Decl(objectSpreadRepeatedComplexity.ts, 75, 23))

        }),
        ...(cnd[20] && {
>cnd : Symbol(cnd, Decl(objectSpreadRepeatedComplexity.ts, 0, 11))

            prop20a: 1,
>prop20a : Symbol(prop20a, Decl(objectSpreadRepeatedComplexity.ts, 78, 24))

            prop20b: 1,
>prop20b : Symbol(prop20b, Decl(objectSpreadRepeatedComplexity.ts, 79, 23))

        }),
    };
}