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

Remove invalid check for named arguments. #1380

Merged
merged 2 commits into from Jan 22, 2021
Merged

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Jan 22, 2021

Fixes #1241.

In #1158 I introduced a check to capture an infix application inside the parenthesis.
This was assuming that the parenthesises were part of SynExpr.New.
This check was a bit naive as that expression can occur in other places as well.
(Part of the IfThenElse in this case).

Then in #1256, I introduce some active patterns NewTuple and AppTuple that are the only valid use cases for the genNamedArgumentExpr function.
This PR fixes this.

@nojaf nojaf merged commit ce5a755 into fsprojects:master Jan 22, 2021
@nojaf nojaf deleted the fix-1241 branch January 22, 2021 14:09
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.

Shorter MaxLineLength with long variable name yields invalid F# code according to fantomas
1 participant