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

Rfmt mangles partial application of operators #2728

Open
feihong opened this issue Nov 2, 2023 · 0 comments
Open

Rfmt mangles partial application of operators #2728

feihong opened this issue Nov 2, 2023 · 0 comments

Comments

@feihong
Copy link

feihong commented Nov 2, 2023

Js.log("45" |> (++)(_, "%"));

Turns into

Js.log("45" |> _ ++ "%");

Which doesn't compile.

Melange playground link

Note that if it's not an operator, it's fine. For example, this won't get mangled:

Js.log("45" |> String.cat(_, "%"));
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