TypeScript/tests/cases/conformance/expressions
Nathan Shively-Sanders 004b3ae018
Simplify arity errors, rewording spread errors (#43855)
* Scribbles + tests

The second test actually requires node types

* Basically working

The two simple fixes, in arity error reporting, are in, and the
simplification of arity error reporting is half-done. I haven't started
on any improvements to call assignability.

* trim out too-real test case

* Finish cleanup

And reword error a little.

* Simplify and reword spread errors

* handle spreads first

* update baselines

* Address PR comments
2021-04-29 14:38:50 -07:00
..
arrayLiterals Add tests 2019-06-17 16:18:13 -10:00
asOperator Emit parens around type-asserted binary operators 2016-07-15 15:56:22 -07:00
assignmentOperator Go back to the old narrowing algorithm (pre #26143) and avoid #26130 by 2018-08-17 21:35:03 -04:00
binaryOperators fix(36055): forbid union type with invalid types in the 'in' operator (#37786) 2020-05-06 11:41:50 -07:00
commaOperator Fix typos in comments (#41307) 2020-11-30 15:02:07 -08:00
conditonalOperator Tests for Conditional operator can generate union type 2014-11-04 13:18:43 -08:00
contextualTyping Fix incorrect noImplicitAny error on contextual union function signature 2019-06-24 17:37:14 -07:00
elementAccess Test:string enum in element access 2017-08-24 14:06:21 -07:00
functionCalls Simplify arity errors, rewording spread errors (#43855) 2021-04-29 14:38:50 -07:00
functions Treat trailing 'void' as optional for assignability (#40231) 2020-08-28 09:12:09 -07:00
identifiers Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
literals Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
newOperator When --noImplicitAny is enabled, don't report errors suggesting that a 'void' function can be 'new'ed (#26579) 2018-08-21 10:02:02 -07:00
nullishCoalescingOperator Fix temp variable scoping in async generators (#38121) 2020-04-24 12:10:29 -07:00
objectLiterals Add tests 2017-10-26 14:56:54 -07:00
operators Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
optionalChaining Gh 41788 incorrect output for esprivate with nested class in esnext (#42663) 2021-04-07 08:23:16 -07:00
propertyAccess Add tests 2019-06-06 13:33:36 -07:00
superCalls Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
superPropertyAccess Instantiate this-type in super property access 2016-05-24 13:07:34 -07:00
thisKeyword Gh 41788 incorrect output for esprivate with nested class in esnext (#42663) 2021-04-07 08:23:16 -07:00
typeAssertions Const contexts for template literals (#40707) 2020-09-22 13:11:17 -10:00
typeGuards Revert assignability cases in getNarrowedType (#42231) 2021-02-09 15:03:11 -08:00
unaryOperators Indexed-assignment readonly err is not unknownType 2017-08-16 10:06:01 -07:00
valuesAndReferences Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00