-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Use ...args: never
in builtin conditional type helpers
#55714
base: main
Are you sure you want to change the base?
Conversation
The TypeScript team hasn't accepted the linked issue #55667. If you can get it accepted, this PR will have a better chance of being reviewed. |
@typescript-bot test top200 |
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 0a2d583. 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 0a2d583. You can monitor the build here. |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 0a2d583. 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 0a2d583. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the regular perf test suite on this PR at 0a2d583. 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:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
Why not |
@jakebailey Here are the results of running the top-repos suite comparing Something interesting changed - please have a look. Details
|
I missed the |
Hey @jakebailey, it looks like the DT test run failed. Please check the log for more details. |
@typescript-bot user test this |
Heya @andrewbranch, I've started to run the diff-based user code test suite on this PR at e08f2a3. You can monitor the build here. Update: The results are in! |
Heya @andrewbranch, I've started to run the diff-based top-repos suite on this PR at e08f2a3. You can monitor the build here. Update: The results are in! |
@andrewbranch Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
@andrewbranch Here are the results of running the top-repos suite comparing Something interesting changed - please have a look. Details
|
Extracted (not exactly minimal yet) repro from |
That’s... weird |
Here is a 17 loc repro. |
I think this is exposing an inference/assignability bug, not a logical consequence of switching the parameter type in the conditional extends type. I notice that if you swap |
@andrewbranch I'll tell you what I found out after some debugging of the code in this playground. Inside In both cases
This is exactly what happens, because the So when
I suppose that the source of the problem is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking this as not currently mergeable based on my previous comment
I plan to get back to this soon-ish but I have a backlog of PR reviews to address right now so it will take some time 😉 |
@jakebailey @andrewbranch could you rerun test suite here? :) |
@typescript-bot user test this |
Heya @andrewbranch, I've started to run the diff-based top-repos suite on this PR at f06aaaa. You can monitor the build here. Update: The results are in! |
Heya @andrewbranch, I've started to run the diff-based user code test suite on this PR at f06aaaa. You can monitor the build here. Update: The results are in! |
@andrewbranch Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Something interesting changed - please have a look. Details
|
@andrewbranch Here are the results of running the top-repos suite comparing Everything looks good! |
Hi @andrewbranch , do you think this PR can now become part of TS |
Why are the |
#56919 and this comment explain what happens if you don't use it. |
@typescript-bot perf test |
Heya @andrewbranch, I've started to run the regular perf test suite on this PR at f06aaaa. You can monitor the build here. Update: The results are in! |
@andrewbranch Here they are:
startupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
closes #55667 , cc @andrewbranch
fixes #56919