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

fix method attr name #792

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix method attr name #792

wants to merge 1 commit into from

Conversation

joprice
Copy link

@joprice joprice commented Sep 30, 2023

Uses of the method attribute were producing method_ in the js output. This adds a mel.as attribute to avoid the escaping of the keyword when converting from reason to ml.

@joprice
Copy link
Author

joprice commented Sep 30, 2023

@anmonteiro filled me in that I'm hitting this issue because of the version of reason I'm using from the [nix-overlays](nix-ocaml/nix-overlays: OCaml-focused, custom nix-overlays), which has this change reverted reasonml/reason#2530. I wonder if this change is still valid, if the mel.as will have the same effect in either context, whether the reason code maps it to method or method_.

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

Successfully merging this pull request may close these issues.

None yet

1 participant