TypeScript/tests/cases/conformance/types
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
..
any [Transforms] Merge master 08/09 (#10263) 2016-08-26 15:51:10 -07:00
asyncGenerators Fix incorrect parameter types for AsyncIterator next/return (#33354) 2019-09-17 21:02:12 -07:00
conditional Add inference priority level for conditional types in contravariant positions (#35199) 2019-11-21 13:05:44 -08:00
contextualTypes Add more tests for await 2018-09-21 10:32:28 -07:00
forAwait Remove ES2018 transforms for ES2018 target (#26315) 2019-02-06 15:35:52 -08:00
import Module or import types (#22592) 2018-04-02 10:18:23 -07:00
intersection Intersection check for empty object type shouldn't cause circularities (#38673) 2020-05-20 10:56:14 -07:00
keyof Add regression test 2019-06-23 09:19:56 -10:00
literal Contextually typed binding element initializers (#35855) 2020-01-06 12:53:23 -08:00
localTypes
mapped Fix regression of generic T assignability to Partial<T> (#32354) 2019-07-12 07:57:55 -07:00
members Revert more baselines, add jake task for typemock 2017-12-19 13:40:32 -08:00
namedTypes Adding more tests 2016-05-16 13:37:17 -07:00
never Merge branch 'master' into vfs 2018-04-17 14:39:20 -07:00
nonPrimitive Check that test cases produce expected types 2018-05-01 13:05:49 -07:00
objectTypeLiteral Fixing test 2016-05-16 13:37:03 -07:00
primitives
rest Make hasCorrectArity handle tuples properly 2020-06-04 23:46:56 -04:00
specifyingTypes Add regression tests 2018-08-06 10:02:33 -07:00
spread Remove error when spreading optional any (#37757) 2020-04-02 15:04:45 -07:00
stringLiteral Update tests 2016-09-01 14:22:18 -07:00
thisType Fix access of protected members on generic this-type (#36928) 2020-02-21 09:33:21 -08:00
tuple Support naming tuple members (#38234) 2020-05-19 15:54:02 -07:00
typeAliases Fix local and exported type alias merging (#36237) 2020-01-22 13:16:49 -08:00
typeParameters Add regression test 2018-07-24 15:33:02 -07:00
typeRelationships Add regression tests 2019-10-20 18:00:08 -07:00
union Reduce intersections by discriminants (#36696) 2020-02-28 17:06:44 -08:00
uniqueSymbol Fix for jsdoc modifiers on constructor params (#38403) 2020-05-11 15:07:43 -07:00
unknown Narrow unknown under inequality when assumed false (#33488) 2019-09-18 10:54:42 -07:00
witness