Skip to content

Double error on invalid delete of readonly propertyΒ #53082

Closed
@jakebailey

Description

@jakebailey

Bug Report

πŸ”Ž Search Terms

operand delete operator double diagnostic error

πŸ•— Version & Regression Information

  • This changed between versions 3.9 and 4.0

Before 4.0, we only gave one error here. In 4.0 and above, we give two errors.

⏯ Playground Link

Playground Link

πŸ’» Code

class Foo {}
delete Foo.name;

πŸ™ Actual behavior

Two errors

πŸ™‚ Expected behavior

One error

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions