Skip to content
New issue

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

semantic: need to throw syntax error for delete object?.#a #7603

Closed
Boshen opened this issue Dec 3, 2024 · 0 comments · Fixed by #7636
Closed

semantic: need to throw syntax error for delete object?.#a #7603

Boshen opened this issue Dec 3, 2024 · 0 comments · Fixed by #7636
Assignees
Labels
A-semantic Area - Semantic C-bug Category - Bug

Comments

@Boshen
Copy link
Member

Boshen commented Dec 3, 2024

class Foo {
  #a
  method() {
    delete object?.#a
  }
}

This should throw a syntax.

Note: delete object?.#a.bar is valid.

@Boshen Boshen added the C-enhancement Category - New feature or request label Dec 3, 2024
@Boshen Boshen self-assigned this Dec 3, 2024
@Boshen Boshen added the A-semantic Area - Semantic label Dec 3, 2024
@overlookmotel overlookmotel added C-bug Category - Bug and removed C-enhancement Category - New feature or request labels Dec 3, 2024
Boshen added a commit that referenced this issue Dec 4, 2024
@Boshen Boshen closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-semantic Area - Semantic C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants