Uh oh!
There was an error while loading. Please reload this page.
Properly handle null and undefined in getCommonSupertype - #50021
Conversation
Anders Hejlsberg (ahejlsberg)
commented
Jul 23, 2022
TypeScript Bot (@typescript-bot) test this |
Anders Hejlsberg (ahejlsberg)
commented
Jul 23, 2022
TypeScript Bot (@typescript-bot) test this |
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the extended test suite on this PR at d4a239c. You can monitor the build here. |
Anders Hejlsberg (ahejlsberg)
commented
Jul 23, 2022
TypeScript Bot (@typescript-bot) user test this inline |
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the diff-based user code test suite on this PR at d4a239c. You can monitor the build here. Update: The results are in! |
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the abridged perf test suite on this PR at d4a239c. You can monitor the build here. Update: The results are in! |
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the parallelized Definitely Typed test suite on this PR at d4a239c. You can monitor the build here. |
Anders Hejlsberg (ahejlsberg)
commented
Jul 23, 2022
TypeScript Bot (@typescript-bot) pack this |
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the tarball bundle task on this PR at d4a239c. You can monitor the build here. |
TypeScript Bot (typescript-bot)
commented
Jul 23, 2022
Anders Hejlsberg (@ahejlsberg) Here they are:Comparison Report - main..50021
System
Hosts
Scenarios
Developer Information: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeScript Bot (typescript-bot)
commented
Jul 23, 2022
Heya Anders Hejlsberg (@ahejlsberg), I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here. |
TypeScript Bot (typescript-bot)
commented
Jul 23, 2022
Anders Hejlsberg (@ahejlsberg) |
Hey Anders Hejlsberg (@ahejlsberg), 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 |
Anders Hejlsberg (ahejlsberg)
commented
Jul 24, 2022
Tests and performance all look good. No new errors, but one error went away in RWC because of better inference. I think this is a good fix. |
Anders Hejlsberg (ahejlsberg)
commented
Jul 24, 2022
Latest commit adds more tests that now succeed but previously failed. |
Jake Bailey (jakebailey)
left a comment
There was a problem hiding this comment.
Looks great. I should have known that literals needed the same treatment!
(filterType is another helper I need to commit to memory as existing.)
This is an alternative fix for #49938 that supercedes #49981.
Jake Bailey (@jakebailey) I found it easier to put up a new PR. I've copied the tests from #49981. This PR more uniformly lifts
undefinedandnullfrom the inference candidates and then adds them back later, plus it's a bit better at avoiding duplicate work. For example, it handles this case that otherwise is an error: