TypeScript/tests/cases/conformance/es6
Nathan Shively-Sanders 5c2eeb20b1
Destructuring declaration prefers type annotation type (#25282)
* Destructuring declaration prefers type annotation type

Previously, getTypeForBindingElement would always union the declarations type and
the type of the default initializer. Now, if the declaration has a type
annotation, it does not union with the initializer type. The type
annotation's type is the one used.

* Small cleanup in parentDeclarationHasTypeAnnotation

* Refactoring based on PR comments

* Combine getCombined*Flags into a single helper function

Retain the individual functions since they are used a lot.

* Remove unneeded temp
2018-06-28 10:41:38 -07:00
..
arrowFunction
binaryAndOctalIntegerLiteral
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
computedProperties Test:use type param constraints for computed prop types 2017-07-25 09:39:54 -07:00
decorators/class Emit generated name for unnamed default exported class with decorated members 2017-04-19 14:53:32 -07:00
defaultParameters
destructuring Destructuring declaration prefers type annotation type (#25282) 2018-06-28 10:41:38 -07:00
for-ofStatements Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -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
moduleExportsCommonjs
moduleExportsSystem
moduleExportsUmd
modules Merge pull request #20671 from Kingwl/fix-import-not-existed-module 2018-04-17 17:29:07 -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
shorthandPropertyAssignment Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
spread Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08: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
variableDeclarations
yieldExpressions Fix control flow loop in yield expression (#25228) 2018-06-26 12:50:29 -07:00