mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
// @target: es2022
|
|
// @noTypesAndSymbols: true
|
|
|
|
namespace N {
|
|
export const key = "a";
|
|
export const source: any = { a: 1, b: undefined, pair: [3, 4] };
|
|
export const fallback = 2;
|
|
|
|
export const { [key]: computed, b = fallback } = source;
|
|
export const [x, y] = source.pair;
|
|
}
|