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

Spaces added inside new index syntax #2494

Closed
3 tasks
auduchinok opened this issue Sep 9, 2022 · 2 comments
Closed
3 tasks

Spaces added inside new index syntax #2494

auduchinok opened this issue Sep 9, 2022 · 2 comments
Labels
bug (stylistic) good first issue Long hanging fruit: easy issue to get your feet wet! next-minor

Comments

@auduchinok
Copy link
Contributor

Context: dotnet/fsharp#13867 (review). Please note it behaves as expected when there's no qualifier expression on the left, i.e. a[c] <- d

Issue created from fantomas-online

Code

a.b[c] <- d

Result

a.b[ c ] <- d

Problem description

Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.

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-09T07:46:11Z - c1a16e6

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 nojaf added bug (stylistic) good first issue Long hanging fruit: easy issue to get your feet wet! next-minor labels Sep 9, 2022
@nojaf
Copy link
Contributor

nojaf commented Sep 9, 2022

Thanks for reporting this!
The AST for a.b[c] leads to NamedIndexedPropertySet so that is probably the reason why this differs from b[c].

We can fix this post v5 release.

@nojaf
Copy link
Contributor

nojaf commented Dec 5, 2022

This is available in the 5.1 series.

@nojaf nojaf closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (stylistic) good first issue Long hanging fruit: easy issue to get your feet wet! next-minor
Projects
None yet
Development

No branches or pull requests

2 participants