Commit b100680
authored
Fix for relating covered discriminants in unions (microsoft#39393)
6 files changed
+104-4Lines changed: 104 additions & 4 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/types/typeRelationships/assignmentCompatibility
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+15-1Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17279 | 17279 | |
17280 | 17280 | |
17281 | 17281 | |
17282 | | - |
| 17282 | + |
| 17283 | + |
| 17284 | + |
| 17285 | + |
| 17286 | + |
17283 | 17287 | |
17284 | 17288 | |
17285 | 17289 | |
| ||
17504 | 17508 | |
17505 | 17509 | |
17506 | 17510 | |
| 17511 | + |
17507 | 17512 | |
17508 | 17513 | |
17509 | 17514 | |
| ||
17520 | 17525 | |
17521 | 17526 | |
17522 | 17527 | |
| 17528 | + |
| 17529 | + |
| 17530 | + |
| 17531 | + |
| 17532 | + |
| 17533 | + |
| 17534 | + |
| 17535 | + |
| 17536 | + |
17523 | 17537 | |
17524 | 17538 | |
17525 | 17539 | |
|
Collapse file
tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.errors.txt+10-1Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
221 | 221 | |
222 | 222 | |
223 | 223 | |
224 | | - |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
Collapse file
tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.js+15-1Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
191 | 191 | |
192 | 192 | |
193 | 193 | |
194 | | - |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
195 | 204 | |
196 | 205 | |
197 | 206 | |
| ||
289 | 298 | |
290 | 299 | |
291 | 300 | |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
Collapse file
tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.symbols
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.symbols+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
492 | 492 | |
493 | 493 | |
494 | 494 | |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
Collapse file
tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatWithDiscriminatedUnion.types+32Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
464 | 464 | |
465 | 465 | |
466 | 466 | |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
| 484 | + |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
Collapse file
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithDiscriminatedUnion.ts
Copy file name to clipboardExpand all lines: tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithDiscriminatedUnion.ts+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
190 | 190 | |
191 | 191 | |
192 | 192 | |
193 | | - |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
0 commit comments