816abb19e4
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
821 B
Plaintext
12 lines
821 B
Plaintext
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.
|
|
|