TypeScript/tests/baselines/reference/declarationInAmbientContext.types
2015-04-15 16:44:20 -07:00

9 lines
304 B
Text

=== tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts ===
declare var [a, b]; // Error, destructuring declaration not allowed in ambient context
>a : any
>b : any
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
>c : any
>d : any