-
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
[experiment] Check for extended empty tuples in isTupleLikeType #52551
[experiment] Check for extended empty tuples in isTupleLikeType #52551
Conversation
@typescript-bot test this |
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 03c06c6. 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 03c06c6. You can monitor the build here. |
Heya @jakebailey, I've started to run the perf test suite on this PR at 03c06c6. You can monitor the build here. |
Heya @jakebailey, I've started to run the extended test suite on this PR at 03c06c6. You can monitor the build here. |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 03c06c6. You can monitor the build here. Update: The results are in! |
@jakebailey Here are the results of running the user test suite comparing Something interesting changed - please have a look. Details
|
Heya @jakebailey, I've run the RWC suite on this PR - assuming you're on the TS core team, you can view the resulting diff here. |
The above definitely implies this PR is wrong as-is, of course. |
@jakebailey Here are the results of running the top-repos suite comparing Something interesting changed - please have a look. Details
|
#52617 does this but correctly. |
I want to export this in #52467 but it doesn't work when you write:
Because
isTupleLikeType
determines tuple-ness by checking for a property named0
which won't exist on an empty tuple.I don't think this is the final code but I want to see what this breaks. It seems like there's a lot of code which depends on empty tuples not being handled, and I don't know how much that matters.