TypeScript/tests/cases/conformance/types/spread/spreadNonPrimitive.ts
Nathan Shively-Sanders 4bc0d85d29 Test:spread object retains lefthandside
1. Make sure that spreading `object` doesn't lose everything to the left.
2. Update baselines to show that `{ ...object }` is now `{}`.
2017-12-12 08:37:34 -08:00

3 lines
83 B
TypeScript

declare let o: object;
const x: { a: number, b: number } = { a: 1, ...o, b: 2 };