-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Member with indexer that has a getter and setter doesn't use and
correctly
#2129
Comments
Hi, this rings a bell. We combine both members into: fantomas/src/Fantomas/SourceTransformer.fs Lines 119 to 125 in d7fb5cb
and then we probably don't do the right thing in fantomas/src/Fantomas/CodePrinter.fs Lines 700 to 733 in d7fb5cb
anymore. Are you interested in submitting a PR for this one? |
Of course! I'll probably take a look this weekend. |
Issue created from fantomas-online
Code
Result
Problem description
The problem here is that the
with
on the second property member (either getter or setter) needs to be anand
if both getter and setter are provided.Note that if the source code isn't written in the separate-property-member syntax (see below) the format works.
Extra information
Options
Fantomas master branch at 2022-03-05T20:07:44Z - d7fb5cb
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: