Closed
Description
TypeScript Version: master
Code
function f<a extends Object>() {
return {...<a>{}};
}
function g<a extends object>() {
return {...<a>{}};
}
Expected behavior:
ok
Actual behavior:
index.ts(2,10): error TS2698: Spread types may only be created from object types.
index.ts(5,10): error TS2698: Spread types may only be created from object types.