Avoid subtype reduction when creating a union result in discriminateTypeByDiscriminableItems#54052
Conversation
…TypeByDiscriminableItems`
|
@typescript-bot test this |
|
Heya @jakebailey, I've started to run the extended test suite on this PR at 1ef6b24. You can monitor the build here. |
|
Heya @jakebailey, I've started to run the abridged perf test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the tarball bundle task on this PR at 1ef6b24. You can monitor the build here. |
|
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build and an npm module you can use via |
|
@jakebailey Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
|
@jakebailey Here they are:Comparison Report - main..54052
System
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@typescript-bot perf test this faster |
|
Heya @jakebailey, I've started to run the abridged perf test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
@jakebailey Here they are:Comparison Report - main..54052
System
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hey @jakebailey, the results of running the DT tests are ready. |
|
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
|
this is for 5.1 regression, is there any chance to get some eyes on it before the stable release? |
|
@typescript-bot test this |
|
Heya @DanielRosenwasser, I've started to run the parallelized Definitely Typed test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Heya @DanielRosenwasser, I've started to run the diff-based top-repos suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Heya @DanielRosenwasser, I've started to run the tarball bundle task on this PR at 1ef6b24. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at 1ef6b24. You can monitor the build here. |
|
Heya @DanielRosenwasser, I've started to run the abridged perf test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Heya @DanielRosenwasser, I've started to run the diff-based user code test suite on this PR at 1ef6b24. You can monitor the build here. Update: The results are in! |
|
Hey @DanielRosenwasser, I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build and an npm module you can use via |
|
In general I think this is a good change, we really shouldn't be subtype reducing contextual types (elsewhere we specifically avoid it). Seems like there's a slight performance regression in |
|
@DanielRosenwasser Here they are:Comparison Report - main..54052
System
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@DanielRosenwasser Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
|
Hey @DanielRosenwasser, the results of running the DT tests are ready. |
|
@DanielRosenwasser Here are the results of running the top-repos suite comparing Everything looks good! |
|
It seems that this PR got preliminary approval from @ahejlsberg . I wonder if it could land before 5.1 (and be cherry-picked into it) since its due date was supposed to be... yesterday 😅 (according to the 5.1 iteration plan) |
…on-on-discriminated-items
Sorry, can you link back to where? @weswigham can you take a look? |
I called it preliminary since it didnt come with a more formal ✅ :P |


fixes #54048 (which is a recent regression from https://github.com/microsoft/TypeScript/pull/53709/files , cc @ahejlsberg )