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

Error when formatting DU with single choice and attribute #596

Closed
thitemple opened this issue Dec 11, 2019 · 0 comments · Fixed by #599
Closed

Error when formatting DU with single choice and attribute #596

thitemple opened this issue Dec 11, 2019 · 0 comments · Fixed by #599

Comments

@thitemple
Copy link

Description

Formatting a discriminated union that only has one choice and that choice has an attribute breaks.

Repro code

type [<StringEnum>] [<RequireQualifiedAccess>] PayableFilters =
    | [<CompiledName "statusSelector">] Status

Dec-11-2019 11-46-57

nojaf added a commit to nojaf/fantomas that referenced this issue Dec 15, 2019
nojaf added a commit that referenced this issue Dec 19, 2019
* Add a pipe when a single case DU has attributes.
Fixes #596

* Added test for sig file.
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 a pull request may close this issue.

1 participant