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

Bug with trying to access an object field starting with underscore #6341

Closed
DZakh opened this issue Aug 13, 2023 · 1 comment
Closed

Bug with trying to access an object field starting with underscore #6341

DZakh opened this issue Aug 13, 2023 · 1 comment

Comments

@DZakh
Copy link
Contributor

DZakh commented Aug 13, 2023

https://rescript-lang.org/try?version=v10.1.2&code=DYUwLgBAZg9jEF4IENED4IG8BQEUG0AiAfQAZCBdbAX2yA

This

let foo = a => {
  a["_0"]
}

is compiled to

function foo(a) {
  return a[0];
}

instead of

function foo(a) {
  return a["_0"];
}

Reproduced in v11

@DZakh
Copy link
Contributor Author

DZakh commented Aug 13, 2023

Related to this #6005

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