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
Same error. From the kind property, TypeScript should understand that the second object literal is of type Square and prevent us from attaching the width property to it.
Actual behavior:
no error
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
I'm not sure if it's a bug.
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
playground, 2.5.1-insiders.20170825
Code
Expected behavior:
Same error. From the
kind
property, TypeScript should understand that the second object literal is of typeSquare
and prevent us from attaching thewidth
property to it.Actual behavior:
no error
The text was updated successfully, but these errors were encountered: