TypeScript/tests/cases/conformance/es6
Ron Buckton e8bf9584aa
Improve type checking and inference for Generators and Async Generators (#30790)
* Improve typing for Generators and Async Generators

* Add TReturn and TNext to Iterator, IterableIterator, etc.

* Update ts internal Iterator to be assignable from global Iterator

* Make 'done' optional in IteratorYieldResult

* Revert Iterable and IterableIterator to simpler versions plus other fixes

* Add additional inference tests

* Added additional tests

* PR cleanup and minor async iteration type fix

* Updated diagnostics message and added non-strict tests

* Fix expected arity of Iterator/AsyncIterator
2019-07-03 21:55:59 -07:00
..
arrowFunction Added tests from 'captureArguments' branch. 2015-04-16 12:29:49 -07:00
binaryAndOctalIntegerLiteral Add check and testcases for invalid binary digits and octal digits 2014-11-29 17:03:38 -08:00
classDeclaration fix super call from class that has no basetype but with same symbol interface (#19068) 2017-10-16 10:42:22 +08:00
classExpressions More tests 2015-07-09 14:41:08 -07:00
computedProperties Add some negative test cases and accept baselines 2019-06-26 14:01:50 -07:00
decorators/class Emit generated name for unnamed default exported class with decorated members 2017-04-19 14:53:32 -07:00
defaultParameters Add tests covering emitting default parameters natively in ES6 2015-01-05 13:22:43 -08:00
destructuring Add more tests 2019-06-30 08:18:01 -10:00
for-ofStatements Improve type checking and inference for Generators and Async Generators (#30790) 2019-07-03 21:55:59 -07:00
functionDeclarations Added conformance tests for async generators 2016-11-17 23:17:42 -08:00
functionExpressions Added conformance tests for async generators 2016-11-17 23:17:42 -08:00
functionPropertyAssignments Added conformance tests for async generators 2016-11-17 23:17:42 -08:00
memberFunctionDeclarations Added conformance tests for async generators 2016-11-17 23:17:42 -08:00
moduleExportsAmd respect root dir/common src dir when generating module names 2015-12-01 17:34:40 -08:00
moduleExportsCommonjs Fix #5844 - add many new tests covering named/anonymous default exports 2015-12-01 14:05:46 -08:00
moduleExportsSystem respect root dir/common src dir when generating module names 2015-12-01 17:34:40 -08:00
moduleExportsUmd Fix #5844 - add many new tests covering named/anonymous default exports 2015-12-01 14:05:46 -08:00
modules add related error span for default exports (#25396) 2019-03-12 13:15:14 -07:00
newTarget Adds support for new.target 2016-12-08 17:31:18 -08:00
propertyAccess More exhaustive needsDotDotForPropertyAccess 2017-01-24 13:42:05 -08:00
restParameters Add tests 2019-01-18 09:34:38 -08:00
shorthandPropertyAssignment Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
spread Improve type checking and inference for Generators and Async Generators (#30790) 2019-07-03 21:55:59 -07:00
Symbols Fix symbol-named properties incorrectly requiring alignment with string indexer type 2018-01-16 15:45:10 -08:00
templates Added test in case 'super' is ever possibly parsed as a tagged template string. 2018-04-19 15:16:25 -07:00
unicodeExtendedEscapes Added tests and updated baselines. 2015-02-26 13:51:51 -08:00
variableDeclarations Added tests for ASI and element access with 'let'. 2016-02-20 00:58:20 -08:00
yieldExpressions Fix control flow loop in yield expression (#25228) 2018-06-26 12:50:29 -07:00