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

Force infix operator on a new line if a lambda is involved #959

Merged
merged 4 commits into from
Jul 11, 2020

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Jul 10, 2020

Fixes #942

Might be a bit of a naive and narrow fix for #942 and #488.
The key problem is that Fantomas does not know what your code does or how operator precedence should behave.
Could be good enough for now...

Copy link
Contributor

@Smaug123 Smaug123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem unreasonable - I can't imagine a similar error happening in many other ways. Precedence usually helps us here.

@nojaf nojaf merged commit 3c128a4 into fsprojects:master Jul 11, 2020
@nojaf nojaf deleted the fix-942 branch July 11, 2020 09:44
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.

Concatenation of lines can break operator precedence
2 participants