swc/crates/swc_ecma_parser/tests/tsc/objectSpreadSetonlyAccessor.ts

5 lines
199 B
TypeScript

// @strict: true
// @target: esnext
const o1: { foo: number, bar: undefined } = { foo: 1, ... { set bar(_v: number) { } } }
const o2: { foo: undefined } = { foo: 1, ... { set foo(_v: number) { } } }