function foo(map: { [key: string]: unknown }) {
  const first = { some: "hello" };
  const options = { some: 42  };
  // $FlowExpectedError[unsafe-object-assign]
  return Object.assign(
    {
      first,
      ...map // Error, can't spread indexer second
    },
    options
  );
}
