You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4: const y: {|a: number, b: number|} = {...x, b: 10};
^ object literal. Inexact type is incompatible with exact type
4: const y: {|a: number, b: number|} = {...x, b: 10};
^ exact type: object type
but it shouldn't produce an error because x is an exact object, so spreading it into an object literal should not prevent that object literal being exact.
The text was updated successfully, but these errors were encountered:
The following example:
Produces the error:
but it shouldn't produce an error because
x
is an exact object, so spreading it into an object literal should not prevent that object literal being exact.The text was updated successfully, but these errors were encountered: