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

Combining lines breaks function precedence #488

Closed
ChrisCanCompute opened this issue Sep 24, 2019 · 1 comment
Closed

Combining lines breaks function precedence #488

ChrisCanCompute opened this issue Sep 24, 2019 · 1 comment

Comments

@ChrisCanCompute
Copy link

Description

When some a line of code has an operation on it, and the line is then piped into another function on the next line, fantomas will combine the two lines.
This will break the code if the precedence of operation on the first line is lower than that of the pipe function

This is an issue on all versions.

Repro code

Before, there is a (unit -> unit) option function.
After, there is a unit -> (unit option) function.

simple example

@nojaf
Copy link
Contributor

nojaf commented Sep 27, 2020

The provided sample is formatted correctly now.
This was solved when #942 got fixed.

@nojaf nojaf closed this as completed Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants