Files
tsgo/testdata/baselines/reference/submodule/compiler/computedPropertiesInDestructuring2.js

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 } = {};