-
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
Make hasCorrectArity
handle tuples properly
#38795
Conversation
@typescript-bot test this |
Heya @RyanCavanaugh, I've started to run the extended test suite on this PR at 3d08da4. You can monitor the build here. |
Heya @RyanCavanaugh, I've started to run the parallelized community code test suite on this PR at 3d08da4. You can monitor the build here. |
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
This completes the work that started in PR microsoft#33069, and fixes microsoft#32835. There are probably two additional related changes that are needed to make this more complete: * Fix the code that composes the error message (see the first two `FIXME`s in `callWithSpread3.ts`). * Fix the code that checks the argument types (second two `FIXME`s). * There is also an error in `genericRestParameters1.ts` which changed but should not be an error in the first place. Added a `FIXME` there too. (Probably will work if the previous iterm is done.) In addition, `getEffectiveCallArguments` munges the arguments in case of a spread in the last argument which might be better to avoid. (I think that there are cases where it wouldn't work anyway, such as a spread of an array followed by a spread of an empty array.)
(After this is merged, there should be two new issues for the |
I just looked at the user test failures and there's nothing new there. |
Nothing in the RWC failures either. |
This completes the work that started in PR #33069, and fixes #32835.
(Includes that PR in a separate commit.)
There are probably two additional related changes that are needed to
make this more complete:
Fix the code that composes the error message (see the first two
FIXME
s incallWithSpread3.ts
).Fix the code that checks the argument types (second two
FIXME
s).There is also an error in
genericRestParameters1.ts
which changedbut should not be an error in the first place. Added a
FIXME
theretoo. (Probably will work if the previous iterm is done.)
In addition,
getEffectiveCallArguments
munges the arguments in case ofa spread in the last argument which might be better to avoid. (I think
that there are cases where it wouldn't work anyway, such as a spread of
an array followed by a spread of an empty array.)