[experiment] Check for extended empty tuples in isTupleLikeType#52551
[experiment] Check for extended empty tuples in isTupleLikeType#52551jakebailey wants to merge 1 commit intomicrosoft:mainfrom
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
isTupleLikeTypedetermines tuple-ness by checking for a property named0which 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.