async function f(x: Promise<object>) {
return { ...await x };
}
...new Object()
...function f() {}
...typeof x
...void x
...undefined