12 lines
No EOL
821 B
Text
12 lines
No EOL
821 B
Text
tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts(1,13): error TS1166: Destructuring declarations are not allowed in ambient contexts.
|
|
tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts(2,13): error TS1166: 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 TS1166: Destructuring declarations are not allowed in ambient contexts.
|
|
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
|
|
~~~~~~
|
|
!!! error TS1166: Destructuring declarations are not allowed in ambient contexts.
|
|
|