mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
290 B
TypeScript
11 lines
290 B
TypeScript
//// [tests/cases/compiler/computedPropertiesInDestructuring2.ts] ////
|
|
|
|
//// [computedPropertiesInDestructuring2.ts]
|
|
let foo2 = () => "bar";
|
|
let {[foo2()]: bar3} = {};
|
|
|
|
//// [computedPropertiesInDestructuring2.js]
|
|
"use strict";
|
|
let foo2 = () => "bar";
|
|
let { [foo2()]: bar3 } = {};
|