Commit a26acf4
authored
Template literal types for contextually typed template literal expressions (#43376)
* Template literal types for contextually typed template literal expressions
* Accept new baselines
* Add regression test
* Add a few more tests1 parent b34e705 commit a26acf4Copy full SHA for a26acf4
9 files changed
+199-87Lines changed: 199 additions & 87 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/types/literal
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31824 | 31824 | |
31825 | 31825 | |
31826 | 31826 | |
31827 | | - |
| 31827 | + |
| 31828 | + |
| 31829 | + |
| 31830 | + |
| 31831 | + |
| 31832 | + |
31828 | 31833 | |
31829 | 31834 | |
31830 | 31835 | |
|
Collapse file
tests/baselines/reference/stringLiteralTypesWithTemplateStrings02.errors.txt
Copy file name to clipboard+2-5Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | 2 | |
4 | 3 | |
5 | | - |
| 4 | + |
6 | 5 | |
7 | 6 | |
8 | 7 | |
9 | 8 | |
10 | | - |
11 | | - |
12 | | - |
| 9 | + |
Collapse file
tests/baselines/reference/stringLiteralTypesWithTemplateStrings02.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/stringLiteralTypesWithTemplateStrings02.types+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
Collapse file
tests/baselines/reference/templateLiteralTypes1.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes1.types+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
13 | 13 | |
14 | 14 | |
|
Collapse file
tests/baselines/reference/templateLiteralTypes2.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes2.errors.txt+15-22Lines changed: 15 additions & 22 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | 1 | |
7 | 2 | |
8 | 3 | |
9 | | - |
10 | 4 | |
11 | 5 | |
12 | 6 | |
13 | 7 | |
14 | | - |
15 | 8 | |
16 | 9 | |
17 | | - |
| 10 | + |
18 | 11 | |
19 | 12 | |
20 | 13 | |
21 | 14 | |
22 | 15 | |
23 | 16 | |
24 | | - |
25 | | - |
26 | 17 | |
27 | | - |
28 | | - |
29 | 18 | |
30 | | - |
31 | | - |
32 | 19 | |
33 | | - |
34 | | - |
35 | 20 | |
36 | 21 | |
37 | 22 | |
| ||
44 | 29 | |
45 | 30 | |
46 | 31 | |
47 | | - |
48 | | - |
49 | 32 | |
50 | 33 | |
51 | 34 | |
| ||
74 | 57 | |
75 | 58 | |
76 | 59 | |
77 | | - |
78 | | - |
79 | 60 | |
80 | 61 | |
81 | 62 | |
| ||
113 | 94 | |
114 | 95 | |
115 | 96 | |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
116 | 105 | |
117 | 106 | |
118 | 107 | |
| ||
139 | 128 | |
140 | 129 | |
141 | 130 | |
142 | | - |
143 | | - |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
144 | 137 | |
Collapse file
tests/baselines/reference/templateLiteralTypes2.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes2.js+28-2Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
71 | 71 | |
72 | 72 | |
73 | 73 | |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
74 | 82 | |
75 | 83 | |
76 | 84 | |
| ||
97 | 105 | |
98 | 106 | |
99 | 107 | |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
100 | 114 | |
101 | 115 | |
102 | 116 | |
| ||
161 | 175 | |
162 | 176 | |
163 | 177 | |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
164 | 182 | |
165 | 183 | |
166 | 184 | |
| ||
172 | 190 | |
173 | 191 | |
174 | 192 | |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
175 | 197 | |
176 | 198 | |
177 | 199 | |
| ||
185 | 207 | |
186 | 208 | |
187 | 209 | |
| 210 | + |
| 211 | + |
| 212 | + |
188 | 213 | |
189 | 214 | |
190 | 215 | |
191 | 216 | |
192 | 217 | |
193 | | - |
| 218 | + |
194 | 219 | |
195 | 220 | |
196 | 221 | |
197 | | - |
| 222 | + |
198 | 223 | |
199 | 224 | |
200 | 225 | |
201 | 226 | |
| 227 | + |
Collapse file
tests/baselines/reference/templateLiteralTypes2.symbols
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes2.symbols+72-33Lines changed: 72 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
257 | 257 | |
258 | 258 | |
259 | 259 | |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
260 | 289 | |
261 | 290 | |
262 | 291 | |
263 | | - |
264 | | - |
265 | | - |
266 | | - |
267 | | - |
268 | | - |
269 | | - |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
270 | 299 | |
271 | 300 | |
272 | | - |
273 | | - |
| 301 | + |
| 302 | + |
274 | 303 | |
275 | 304 | |
276 | | - |
| 305 | + |
277 | 306 | |
278 | 307 | |
279 | | - |
280 | | - |
281 | | - |
| 308 | + |
| 309 | + |
| 310 | + |
282 | 311 | |
283 | 312 | |
284 | | - |
| 313 | + |
285 | 314 | |
286 | 315 | |
287 | | - |
288 | | - |
289 | | - |
| 316 | + |
| 317 | + |
| 318 | + |
290 | 319 | |
291 | 320 | |
292 | | - |
293 | | - |
| 321 | + |
| 322 | + |
294 | 323 | |
295 | 324 | |
296 | | - |
297 | | - |
298 | | - |
| 325 | + |
| 326 | + |
| 327 | + |
299 | 328 | |
300 | 329 | |
301 | | - |
| 330 | + |
302 | 331 | |
303 | 332 | |
304 | | - |
305 | | - |
306 | | - |
| 333 | + |
| 334 | + |
| 335 | + |
307 | 336 | |
308 | 337 | |
309 | 338 | |
310 | 339 | |
311 | | - |
| 340 | + |
312 | 341 | |
313 | 342 | |
314 | | - |
| 343 | + |
315 | 344 | |
316 | 345 | |
317 | | - |
318 | | - |
| 346 | + |
| 347 | + |
319 | 348 | |
320 | 349 | |
321 | | - |
322 | | - |
323 | | - |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
324 | 363 | |
0 commit comments