You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const() is a fairly obscure F# keyword that allows you to create an inline string literal by composing multiple string literals together (instead of declaring a separate let [<Literal>] value = ...).
It is most useful for type provider parameters, which specifically require string literals.
Fantomas deletes it, which breaks such code.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Hello piaste, thanks for reporting this issue.
I had no idea this even existed.
My fix for this might be a bit naive as it is based only on this one example.
Please report any further issues you might discover.
Issue created from fantomas-online
Code
Result
Problem description
const()
is a fairly obscure F# keyword that allows you to create an inline string literal by composing multiple string literals together (instead of declaring a separatelet [<Literal>] value = ...
).It is most useful for type provider parameters, which specifically require string literals.
Fantomas deletes it, which breaks such code.
Extra information
Options
Fantomas Master at 04/01/2021 13:51:56 - a16da08
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: