TypeScript/tests/cases/conformance/types/rest
Eli Barzilay 3151e2a365 Make hasCorrectArity handle tuples properly
This completes the work that started in PR #33069, and fixes #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.)
2020-06-04 23:46:56 -04:00
..
genericObjectRest.ts Add tests 2018-11-02 08:20:06 -07:00
genericRestArity.ts Add tests 2018-07-12 07:07:13 -10:00
genericRestArityStrict.ts Add tests 2018-07-12 07:07:13 -10:00
genericRestParameters1.ts Make hasCorrectArity handle tuples properly 2020-06-04 23:46:56 -04:00
genericRestParameters2.ts Add [Constructor]Parameter types to lib.d.ts (#26243) 2018-08-31 07:46:16 -07:00
genericRestParameters3.ts Properly strip readonly from rest argument types (#35169) 2019-11-18 13:11:36 -08:00
objectRest.ts Merge branch 'master' into property-access-for-string-index-sigs 2017-01-18 08:29:38 -08:00
objectRest2.ts Test object spread+async emit & nested spread emit 2016-11-14 08:54:32 -08:00
objectRestAssignment.ts Improve nested destructuring test for ESNext emit 2016-11-09 10:51:56 -08:00
objectRestCatchES5.ts Fix compiler crash with object rest in catch binding (#31522) 2019-05-22 11:20:07 -07:00
objectRestForOf.ts Add rest tests 2016-11-02 14:56:58 -07:00
objectRestNegative.ts Update tests and baselines 2016-12-05 09:58:33 -08:00
objectRestParameter.ts ES5:Emit parameter initialiser before object rest destructuring 2017-02-15 08:40:23 -08:00
objectRestParameterES5.ts ES5:Emit parameter initialiser before object rest destructuring 2017-02-15 08:40:23 -08:00
objectRestPropertyMustBeLast.ts Fix crash when checking invalid object rest (#31530) 2019-05-22 11:20:57 -07:00
objectRestReadonly.ts Remove readonly from object rest properties (#23746) 2018-04-27 14:54:59 -07:00
restElementMustBeLast.ts Add rest tests 2016-11-02 14:56:58 -07:00
restTuplesFromContextualTypes.ts Add tests 2019-02-19 07:02:50 -10:00