mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
554 B
Plaintext
12 lines
554 B
Plaintext
//// [tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts] ////
|
|
|
|
=== declarationInAmbientContext.ts ===
|
|
declare var [a, b]; // Error, destructuring declaration not allowed in ambient context
|
|
>a : Symbol(a, Decl(declarationInAmbientContext.ts, 0, 13))
|
|
>b : Symbol(b, Decl(declarationInAmbientContext.ts, 0, 15))
|
|
|
|
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
|
|
>c : Symbol(c, Decl(declarationInAmbientContext.ts, 1, 13))
|
|
>d : Symbol(d, Decl(declarationInAmbientContext.ts, 1, 15))
|
|
|