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
interfaceFoo{readonlyProperty: string;}letbar: Foo={Property: "Baz!"};bar.Property=undefined;// Disallowed - Cannot Assign to 'Property' because it is a constant or a read-only propertydeletebar.Property;// Allowed
Expected behavior:
The TS compiler should disallow deletion of a read-only property.
Actual behavior:
The TS compiler allows deletion of a read-only property.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
Code
Expected behavior:
The TS compiler should disallow deletion of a read-only property.
Actual behavior:
The TS compiler allows deletion of a read-only property.
The text was updated successfully, but these errors were encountered: