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

Add or remove () when necessary. Should fix #369 #373

Merged
merged 2 commits into from
Nov 28, 2018

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Nov 28, 2018

No description provided.

| App(Var "?", e::es) -> genExpr astContext e -- "?" +> col sepSpace es (genExpr astContext)
| App(Var "?", e::es) ->
match es with
| SynExpr.Ident(_)::_
Copy link
Contributor

Choose a reason for hiding this comment

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

We should also use parens in this case - this means user used x?(k) and we shouldn't remove parens in that case, see #369 (comment)

src/Fantomas.Tests/DynamicOperatorTests.fs Outdated Show resolved Hide resolved
@nojaf nojaf merged commit 0e9ed41 into fsprojects:master Nov 28, 2018
@nojaf nojaf deleted the fix-369 branch November 28, 2018 13:21
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

2 participants