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
Note that an excess property error is not a type error per se - objects can legally have more properties than the type declares. This is more of a lint check and you shouldnβt rely on it to enforce runtime invariants. See #12936.
π Search Terms
spread operator
#38657 (comment)
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
The spread operator can fool the type check, as shown in the line with "No compile error. Not expected.".
π Expected behavior
The type check should show compile error as
b
field is not expectedAdditional information about the issue
No response
The text was updated successfully, but these errors were encountered: