Files
tsgo/testdata/tests/cases/compiler/expandoNoInferredIndex.ts

15 lines
284 B
TypeScript

// @checkJs: true
// @noEmit: true
// https://github.com/microsoft/typescript-go/issues/3691
// @filename: main.js
export class C {
method() {
const obj = {};
obj.foo = 'foo';
obj.bar = 'bar';
obj.buzz = Object.values(obj);
}
}