Commit 4638c68
authored
Properly reduce intersections of string literal and template literal types (microsoft#41162)
* Properly reduce single element intersections
* Add regression test
* Accept new baselines1 parent 15cec9d commit 4638c68
File tree
6 files changed
+43
-9
lines changed- src/compiler
- tests
- baselines/reference
- cases/conformance/types/literal
6 files changed
+43
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13373 | 13373 | | |
13374 | 13374 | | |
13375 | 13375 | | |
| 13376 | + | |
| 13377 | + | |
| 13378 | + | |
13376 | 13379 | | |
13377 | 13380 | | |
13378 | 13381 | | |
| |||
13424 | 13427 | | |
13425 | 13428 | | |
13426 | 13429 | | |
13427 | | - | |
13428 | | - | |
13429 | | - | |
13430 | | - | |
13431 | | - | |
13432 | | - | |
| 13430 | + | |
13433 | 13431 | | |
13434 | 13432 | | |
13435 | 13433 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
0 commit comments