mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
361 B
TypeScript
10 lines
361 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts] ////
|
|
|
|
//// [declarationInAmbientContext.ts]
|
|
declare var [a, b]; // Error, destructuring declaration not allowed in ambient context
|
|
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
|
|
|
|
|
|
//// [declarationInAmbientContext.js]
|
|
"use strict";
|