Commit 57c8938
authored
Consistent inferences when inferring to template literal type (microsoft#40518)
* Consistently make inferences when inferring to template literal type
* Add tests
* Accept new baselines1 parent c9422e6 commit 57c8938
File tree
6 files changed
+209
-137
lines changed- src/compiler
- tests
- baselines/reference
- cases/conformance/types/literal
6 files changed
+209
-137
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20056 | 20056 | | |
20057 | 20057 | | |
20058 | 20058 | | |
20059 | | - | |
20060 | | - | |
20061 | | - | |
20062 | | - | |
20063 | | - | |
20064 | | - | |
20065 | | - | |
20066 | | - | |
| 20059 | + | |
| 20060 | + | |
| 20061 | + | |
| 20062 | + | |
| 20063 | + | |
| 20064 | + | |
20067 | 20065 | | |
20068 | 20066 | | |
20069 | 20067 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
201 | 210 | | |
202 | 211 | | |
203 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
179 | 188 | | |
180 | 189 | | |
181 | 190 | | |
| |||
329 | 338 | | |
330 | 339 | | |
331 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
332 | 346 | | |
333 | 347 | | |
334 | 348 | | |
| |||
0 commit comments