TypeScript/tests/cases/compiler/computedPropertiesInDestructuring2_ES6.ts

4 lines
70 B
TypeScript

// @target: ES6
let foo2 = () => "bar";
let {[foo2()]: bar3} = {};