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

Items.Item <index> <- value gives wrong code #2498

Closed
1 of 3 tasks
dbrattli opened this issue Sep 10, 2022 · 1 comment · Fixed by #2509
Closed
1 of 3 tasks

Items.Item <index> <- value gives wrong code #2498

dbrattli opened this issue Sep 10, 2022 · 1 comment · Fixed by #2509
Labels
bug (soundness) good first issue Long hanging fruit: easy issue to get your feet wet!

Comments

@dbrattli
Copy link

Issue created from fantomas-online

Code

let xs = [| 42 |]

xs.Items.Item 0 <- 20

Result

let xs = [| 42 |]

xs.Items.Item0 <- 20

Problem description

Fantomas removes space that should not be removed.

Extra information

  • The formatted result breaks my code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas master branch at 2022-09-10T06:40:11Z - e1bd963

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?

@nojaf
Copy link
Contributor

nojaf commented Sep 11, 2022

Hello, this problem seems to occur around the NamedIndexedPropertySet node.
Are you interested in submitting a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (soundness) good first issue Long hanging fruit: easy issue to get your feet wet!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants