Open Smaug123 opened 9 months ago
I think this is related to https://github.com/dotnet/fsharp/pull/16345 So the net8 F# compiler is behind our parser code and still accepts this but won't anymore with the next bugfix release.
Yes, this fails in my fsi
of my local dotnet/fsharp
main branch.
This doesn't feel quite right if this code breaks in 8.0.200
.
Issue created from fantomas-online
Code
Error
Problem description
The F# compiler accepts this, at least as of net8:
Interestingly try.fsharp.org exhibits a similar failure, though.
(There's an obvious workaround, namely to add the keyword
member
.)Extra information
Options
Fantomas main branch at 2023-12-29T14:09:11Z - a999b77ca5a024fbc3409955faac797e29b39d27
Default Fantomas configuration
Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.