TypeScript/tests/cases/conformance/es6/destructuring
Andrew Branch 1236a1006c
Fix initialization error when destructuring from object literal that includes a spread assignment (#36865)
* Add test

* Fix superfluous error when destructuring from object that includes spread assignment

* Update baseline to include error case

* Remove redundant check
2020-02-19 08:28:12 -08:00
..
arrayAssignmentPatternWithAny.ts The element/iterated type of any is any 2015-04-14 17:12:53 -07:00
declarationInAmbientContext.ts Adding rudimentary tests 2014-12-02 16:23:37 -08:00
declarationsAndAssignments.ts update test 2018-08-01 09:59:50 +02:00
declarationWithNoInitializer.ts Adding rudimentary tests 2014-12-02 16:23:37 -08:00
destructuringArrayBindingPatternAndAssignment1ES5.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringArrayBindingPatternAndAssignment1ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
destructuringArrayBindingPatternAndAssignment1ES6.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringArrayBindingPatternAndAssignment2.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringArrayBindingPatternAndAssignment3.ts More tests for binding elements referencing previous elements 2016-12-06 13:05:52 -08:00
destructuringAssignabilityCheck.ts check more case for empty binding patten (#25263) 2019-04-26 14:00:04 -07:00
destructuringCatch.ts Allow destructuring in catch clauses 2016-10-20 13:35:46 -07:00
destructuringControlFlow.ts Add regression test 2019-06-21 18:07:15 -10:00
destructuringInFunctionType.ts Adding test 2016-02-02 14:14:55 -08:00
destructuringObjectBindingPatternAndAssignment1ES5.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringObjectBindingPatternAndAssignment1ES6.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringObjectBindingPatternAndAssignment3.ts Add spread tests 2016-09-26 09:33:08 -07:00
destructuringObjectBindingPatternAndAssignment4.ts More tests for binding elements referencing previous elements 2016-12-06 13:05:52 -08:00
destructuringObjectBindingPatternAndAssignment5.ts add prependRange and move more variable declaration 2018-05-10 15:54:51 +08:00
destructuringParameterDeclaration1ES5.ts Move tests with errors to separate file 2015-04-16 14:32:23 -07:00
destructuringParameterDeclaration1ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
destructuringParameterDeclaration1ES6.ts update baselines 2015-05-05 15:00:41 -07:00
destructuringParameterDeclaration2.ts update baselines 2015-05-05 15:00:41 -07:00
destructuringParameterDeclaration3ES5.ts Move tests with errors to separate file 2015-04-16 14:32:23 -07:00
destructuringParameterDeclaration3ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
destructuringParameterDeclaration3ES6.ts Move tests with errors to separate file 2015-04-16 14:32:23 -07:00
destructuringParameterDeclaration4.ts [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
destructuringParameterDeclaration5.ts Move tests with errors to separate file 2015-04-16 14:32:23 -07:00
destructuringParameterDeclaration6.ts Move tests with errors to separate file 2015-04-16 14:32:23 -07:00
destructuringParameterDeclaration7ES5.ts [Transforms] Merge master 07/11 into transform (#9697) 2016-07-18 15:38:30 -07:00
destructuringParameterDeclaration7ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
destructuringParameterDeclaration8.ts Destructuring declaration prefers type annotation type (#25282) 2018-06-28 10:41:38 -07:00
destructuringParameterProperties1.ts Renamed tests. 2015-01-14 16:13:12 -08:00
destructuringParameterProperties2.ts Renamed tests. 2015-01-14 16:13:12 -08:00
destructuringParameterProperties3.ts Renamed tests. 2015-01-14 16:13:12 -08:00
destructuringParameterProperties4.ts Renamed tests. 2015-01-14 16:13:12 -08:00
destructuringParameterProperties5.ts Renamed tests. 2015-01-14 16:13:12 -08:00
destructuringReassignsRightHandSide.ts Fix destructuring assignment when assignment target is RHS 2018-01-16 16:58:56 -08:00
destructuringSameNames.ts Tweak the test and add more duplicate name assignment tests 2020-01-08 14:21:28 -05:00
destructuringSpread.ts Fix initialization error when destructuring from object literal that includes a spread assignment (#36865) 2020-02-19 08:28:12 -08:00
destructuringTypeAssertionsES5_1.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringTypeAssertionsES5_2.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringTypeAssertionsES5_3.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringTypeAssertionsES5_4.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringTypeAssertionsES5_5.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringTypeAssertionsES5_6.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringTypeAssertionsES5_7.ts Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
destructuringVariableDeclaration1ES5.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringVariableDeclaration1ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
destructuringVariableDeclaration1ES6.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringVariableDeclaration2.ts Add spec description 2015-04-16 18:53:16 -07:00
destructuringVoid.ts Add failing tests for destructuring void 2019-04-01 13:33:41 -07:00
destructuringVoidStrictNullChecks.ts Add failing tests for destructuring void 2019-04-01 13:33:41 -07:00
destructuringWithLiteralInitializers.ts Revising test 2015-09-10 16:27:35 -07:00
destructuringWithLiteralInitializers2.ts Add more tests 2019-06-30 08:18:01 -10:00
emptyArrayBindingPatternParameter01.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyArrayBindingPatternParameter02.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyArrayBindingPatternParameter03.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyArrayBindingPatternParameter04.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns01_ES5.ts Fix 16628: "undefined" exception when name of binding element in binding pattern is empty (#17132) 2017-08-09 13:47:44 -07:00
emptyAssignmentPatterns01_ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
emptyAssignmentPatterns01_ES6.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns02_ES5.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns02_ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
emptyAssignmentPatterns02_ES6.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns03_ES5.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns03_ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
emptyAssignmentPatterns03_ES6.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns04_ES5.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyAssignmentPatterns04_ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
emptyAssignmentPatterns04_ES6.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyObjectBindingPatternParameter01.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyObjectBindingPatternParameter02.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyObjectBindingPatternParameter03.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyObjectBindingPatternParameter04.ts Added declaration option to empty destructuring tests. 2015-09-01 17:24:58 -07:00
emptyVariableDeclarationBindingPatterns01_ES5.ts Added tests for parameter initializers. 2015-09-09 12:47:31 -07:00
emptyVariableDeclarationBindingPatterns01_ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
emptyVariableDeclarationBindingPatterns01_ES6.ts Added tests for parameter initializers. 2015-09-09 12:47:31 -07:00
emptyVariableDeclarationBindingPatterns02_ES5.ts Added tests. 2015-09-01 17:36:20 -07:00
emptyVariableDeclarationBindingPatterns02_ES5iterable.ts Rename and simplify 'iterationMode' option 2016-12-30 14:39:51 -08:00
emptyVariableDeclarationBindingPatterns02_ES6.ts Added tests. 2015-09-01 17:36:20 -07:00
iterableArrayPattern1.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern2.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern3.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern4.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern5.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern6.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern7.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern8.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern9.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern10.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern11.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern12.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern13.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern14.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern15.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern16.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern17.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern18.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern19.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern20.ts Update tests and baselines to declare class declaration before use 2017-02-24 17:48:06 -08:00
iterableArrayPattern21.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern22.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern23.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern24.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern25.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern26.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern27.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern28.ts Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
iterableArrayPattern29.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
iterableArrayPattern30.ts Add tests for array destructuring of iterables 2015-03-25 18:04:11 -07:00
missingAndExcessProperties.ts Adding test for excess/missing properties 2015-09-05 15:46:45 -07:00
nonIterableRestElement1.ts Assignment rest element pretends to get the contextual element type 2015-04-13 17:29:14 -07:00
nonIterableRestElement2.ts Assignment rest element pretends to get the contextual element type 2015-04-13 17:29:14 -07:00
nonIterableRestElement3.ts Assignment rest element pretends to get the contextual element type 2015-04-13 17:29:14 -07:00
objectBindingPatternKeywordIdentifiers01.ts Added tests. 2015-04-16 15:23:11 -07:00
objectBindingPatternKeywordIdentifiers02.ts Added tests. 2015-04-16 15:23:11 -07:00
objectBindingPatternKeywordIdentifiers03.ts Added tests. 2015-04-16 15:23:11 -07:00
objectBindingPatternKeywordIdentifiers04.ts Added tests. 2015-04-16 15:23:11 -07:00
objectBindingPatternKeywordIdentifiers05.ts Added tests. 2015-04-16 15:23:11 -07:00
objectBindingPatternKeywordIdentifiers06.ts Added tests. 2015-04-16 15:23:11 -07:00
optionalBindingParameters1.ts Added tests. 2015-01-14 17:02:31 -08:00
optionalBindingParameters2.ts Added tests. 2015-01-14 17:02:31 -08:00
optionalBindingParametersInOverloads1.ts Added tests. 2015-01-14 17:02:31 -08:00
optionalBindingParametersInOverloads2.ts Added tests. 2015-01-14 17:02:31 -08:00
restElementWithAssignmentPattern1.ts Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
restElementWithAssignmentPattern2.ts Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
restElementWithAssignmentPattern3.ts Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
restElementWithAssignmentPattern4.ts Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
restElementWithAssignmentPattern5.ts Rest assignment element allows nested destructuring (fixes #2156) 2015-04-13 17:29:11 -07:00
restElementWithBindingPattern.ts Disallow binding patterns in binding rest elements (fixes #2519) 2015-04-13 17:21:19 -07:00
restElementWithBindingPattern2.ts Disallow binding patterns in binding rest elements (fixes #2519) 2015-04-13 17:21:19 -07:00
restElementWithInitializer1.ts Adding new tests 2014-12-12 14:34:12 -08:00
restElementWithInitializer2.ts Adding new tests 2014-12-12 14:34:12 -08:00
restElementWithNullInitializer.ts Addressing CR feedback 2015-02-21 19:33:53 -08:00
restPropertyWithBindingPattern.ts emit error on destructuring of rest property (#29609) 2019-04-25 13:33:49 -07:00