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
Expected behavior:
Assignment to both data1 and data2 fails because the value yellow is not a valid value of the property colour according to the DataFace interface.
Actual behavior:
Assignment to data2 fails as expected, but assignment to data1 succeeds because it seems like weak typing + potential internal conversion of computed properties to strings means that type checking is ignored for the computed property.
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.
TypeScript Version: 2.3.3
Code
Expected behavior:
Assignment to both data1 and data2 fails because the value yellow is not a valid value of the property colour according to the DataFace interface.
Actual behavior:
Assignment to data2 fails as expected, but assignment to data1 succeeds because it seems like weak typing + potential internal conversion of computed properties to strings means that type checking is ignored for the computed property.
The text was updated successfully, but these errors were encountered: