We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As @mhegazy said in #6717 deleting of readonly properties should follow the same rules as writing.
TypeScript Version: 2.0.3
Code
class Foo { public readonly bar: Bar; constructor() { this.bar = createBar(...); } public destroy() { delete this.bar; // here } }
Expected behavior: tsc should give a compile-time error Actual behavior: No error
tsc
The text was updated successfully, but these errors were encountered:
Associated with #11480
Sorry, something went wrong.
Any change we do in #11480 would apply equally here, so we can track the change at that issue. Thanks!
No branches or pull requests
As @mhegazy said in #6717 deleting of readonly properties should follow the same rules as writing.
TypeScript Version: 2.0.3
Code
Expected behavior:
tsc
should give a compile-time errorActual behavior:
No error
The text was updated successfully, but these errors were encountered: