Files
tsgo/testdata/baselines/reference/submodule/compiler/computedPropertiesInDestructuring2.errors.txt

8 lines
341 B
Plaintext

computedPropertiesInDestructuring2.ts(2,7): error TS2537: Type '{}' has no matching index signature for type 'string'.
==== computedPropertiesInDestructuring2.ts (1 errors) ====
let foo2 = () => "bar";
let {[foo2()]: bar3} = {};
~~~~~~
!!! error TS2537: Type '{}' has no matching index signature for type 'string'.