9 lines
304 B
Text
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
|
|
|