-
-
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
Incorrect indentation when folding a record update expression #536
Comments
Another instance of same issue: Issue created from fantomas-ui The sample here is a bit extreme as I used 20 for page width, but I was able to reproduce same behaviour with more representative production code. Codetype A =
{ Number : int }
let a = { Number = 2 }
let b =
{ a with Number = 3 }
Resulttype A =
{ Number: int }
let a =
{ Number = 2 }
let b =
{ a with Number =
3 }
Expectedtype A =
{ Number: int }
let a =
{ Number = 2 }
let b =
{ a with
Number = 3 } OptionsFantomas 3.0.0
|
I get this warning quite often too. It would be really nice to have this patched. Warnings are usually something that should be taken seriously (like non-exhaustive pattern matching). It would be nice to have warnings be a blocker on PRs / give error on CI builds. |
Imo the suggested formatting looks much better too 😄 |
Not a problem anymore. |
Description
Formatted code gives
Repro code
https://jindraivanek.gitlab.io/fantomas-ui/#?code=ATDawIgOgegQwDYBcDGB7AbgUwE5R1ujgCa5RFZQDOCAdhANySyKqZkXV2PMwDKcALYAHBFgCMAFn5DREyV3rAAugFgAUCAA+APmB8sARygBLJLmAAKAGYBXWsCrAAtHqoaQnr959fdwABE0JAA5LCQoACNbEwRiD19EpJt7YGEXHQSk7K8AbzSoAHUzAAsAYTRBQTQHYmDacIB5YSQTGqcAd1LgCtprEwBzWxw4VprgAF5A4LCIgCEYuN7+oZGx2igArGiB4ABfLJyc-y6kEoBZPgXY4gAFOBHBKgBKZ6A&config=N4IgkgdgJgphAuBlADgQwMYwHIFcC2IAXAEwA0IACqgOYwDqAllPABZECcADAL5A
The text was updated successfully, but these errors were encountered: