swc/crates/swc_ecma_parser/tests/tsc/spreadUnion4.ts
2022-02-04 17:08:38 +09:00

5 lines
98 B
TypeScript

declare const a: { x: () => void }
declare const b: { x?: () => void }
const c = { ...a, ...b };