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

11 lines
302 B
TypeScript

//// [tests/cases/compiler/computedPropertiesInDestructuring2_ES6.ts] ////
//// [computedPropertiesInDestructuring2_ES6.ts]
let foo2 = () => "bar";
let {[foo2()]: bar3} = {};
//// [computedPropertiesInDestructuring2_ES6.js]
"use strict";
let foo2 = () => "bar";
let { [foo2()]: bar3 } = {};