We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue created from fantomas-online
type C() = static member foo(?``type``) = ``type``
type C() = static member foo(?type) = ``type``
Backticks removed in ?type - incorrect code.
?type
Probably related to #2731.
Fantomas main branch at 2023-08-31T06:37:49Z - 369faf8
Default Fantomas configuration
The text was updated successfully, but these errors were encountered:
Hi there,
We don't process SynPat.OptionalVal correctly in
SynPat.OptionalVal
fantomas/src/Fantomas.Core/ASTTransformer.fs
Line 1633 in bbecd22
It should be more something like:
let identNode = mkIdent ident SingleTextNode($"?{identNode.Text}", patternRange) |> Pattern.OptionalVal
Are you interested in submitting a PR?
Sorry, something went wrong.
Yes, it looks simple enough :)
Fix fsprojects#2954.
a0cecd3
Fix #2954 by using mkIdent in SynPat.OptionalVal (#2956)
74b1812
jindraivanek
Successfully merging a pull request may close this issue.
Issue created from fantomas-online
Code
Result
Problem description
Backticks removed in
?type
- incorrect code.Probably related to #2731.
Extra information
Options
Fantomas main branch at 2023-08-31T06:37:49Z - 369faf8
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: