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

Refmt syntax error with fast-pipe into anonymous function #2127

Closed
arnarthor opened this issue Aug 12, 2018 · 3 comments
Closed

Refmt syntax error with fast-pipe into anonymous function #2127

arnarthor opened this issue Aug 12, 2018 · 3 comments

Comments

@arnarthor
Copy link

arnarthor commented Aug 12, 2018

Belt.List.map([1, 2, 3], a => a + 1)->(sums => Js.log(sums));

Formats into

Belt.List.map([1, 2, 3], a => a + 1)->sums => Js.log(sums);

Using this with the old fast-pipe syntax was fine before the update

Belt.List.map([1, 2, 3], a => a + 1) |. sums => Js.log(sums);

We used this pretty widely in our codebase without any problems

Which causes a syntax error.
/cc @IwanKaramazow

@anmonteiro
Copy link
Member

This has been fixed in #2111

@arnarthor
Copy link
Author

Great, thanks! I tried looking through the issues but couldn't find any report.

@anmonteiro
Copy link
Member

it was #2118 for reference

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

2 participants