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

MemberExpression's property field is typed as an Expression, but can be false #256

Open
benoitkoenig opened this issue Oct 17, 2023 · 0 comments

Comments

@benoitkoenig
Copy link

Parsing the expression [1, 2, 3][] returns a MemberExpression

  • It's object field contains the expression for the array [1, 2, 3] as expected
  • It's property field is set to false. MemberExpression#property is typed as an Expression and cannot be false

I made a minimal repro repository here

Please either update MemberExpression's type, or update it's return value when meeting this specific scenario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant