-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Revert removal of nonInferrableAnyType #50691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@typescript-bot test this |
|
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at cafebee. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at cafebee. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the abridged perf test suite on this PR at cafebee. You can monitor the build here. Update: The results are in! |
|
Heya @jakebailey, I've started to run the extended test suite on this PR at cafebee. You can monitor the build here. |
|
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at cafebee. You can monitor the build here. |
|
@jakebailey Here they are:Comparison Report - main..50691
System
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@jakebailey Here are the results of running the user test suite comparing Everything looks good! |
|
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
|
@typescript-bot pack this |
|
Heya @jakebailey, I've started to run the tarball bundle task on this PR at cafebee. You can monitor the build here. |
|
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 |
|
@typescript-bot cherry-pick this to release-4.8 |
|
Heya @jakebailey, I've started to run the task to cherry-pick this into |
|
Hey @jakebailey, I've opened #50743 for you. |
Fixes #50680
This reverts a cleanup I made in #49887; apparently, it did matter, but we didn't have a test case to show so.
The type name is probably bad at this point; it's a special any that we only use for this purpose. It would seem like
anyWideningTypeis the right name for it (mirroring the two others with this flag), but confusingly, removing theContainsWideningTypeflag still passes the tests. Maybe there's another case to come up with? Also,ContainsWideningTypeis documented as only existing on those two other types, and they are conditional onstrictNullChecks, so... huh?Anyway, now the code is as it was before, and it works.
This might be another 4.8 backport candidate.