mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
487 B
TypeScript
16 lines
487 B
TypeScript
//// [tests/cases/compiler/exportArrayBindingPattern.ts] ////
|
|
|
|
//// [exportArrayBindingPattern.ts]
|
|
// issue: https://github.com/Microsoft/TypeScript/issues/10778
|
|
const [a, , b] = [1, 2, 3];
|
|
export { a, b };
|
|
|
|
//// [exportArrayBindingPattern.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.b = exports.a = void 0;
|
|
// issue: https://github.com/Microsoft/TypeScript/issues/10778
|
|
const [a, , b] = [1, 2, 3];
|
|
exports.a = a;
|
|
exports.b = b;
|