Conflicts: src/compiler/checker.ts src/compiler/diagnosticInformationMap.generated.ts src/compiler/diagnosticMessages.json src/compiler/emitter.ts src/compiler/parser.ts src/compiler/types.ts src/services/navigationBar.ts tests/baselines/reference/assignmentLHSIsValue.errors.txt tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt tests/baselines/reference/parserErrorRecovery_ParameterList2.errors.txt
12 lines
No EOL
821 B
Text
12 lines
No EOL
821 B
Text
tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts(1,13): error TS1183: Destructuring declarations are not allowed in ambient contexts.
|
|
tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts(2,13): error TS1183: Destructuring declarations are not allowed in ambient contexts.
|
|
|
|
|
|
==== tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts (2 errors) ====
|
|
declare var [a, b]; // Error, destructuring declaration not allowed in ambient context
|
|
~~~~~~
|
|
!!! error TS1183: Destructuring declarations are not allowed in ambient contexts.
|
|
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
|
|
~~~~~~
|
|
!!! error TS1183: Destructuring declarations are not allowed in ambient contexts.
|
|
|