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
This code is invalid because it is missing ; separator.
Another problem with this code, is that it gives a compiler warning because there should be a space between set and the bracket [
The syntax 'expr1[expr2]' is used for indexing. Consider adding a type annotation to enable indexing, or if calling a function add a space, e.g. 'expr1 [expr2]'
Problem description
Fantomas was not able to produce the same code after reformatting the result.
Extra information
The formatted result breaks my code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Options
Fantomas master branch at 2022-07-28T06:18:27Z - 9f5feff
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered:
Hello, this is a duplicate of #2158.
In short, calling set[expr] is considered to be an indexer expression (like foo[1]) in the new F# 6 syntax.
You need to add a space in your code to tell the compiler this is a function application instead of an indexer expression. (Example)
Issue created from fantomas-online
Formatted code
Reformatted code
This code is invalid because it is missing
;
separator.Another problem with this code, is that it gives a compiler warning because there should be a space between
set
and the bracket[
Problem description
Fantomas was not able to produce the same code after reformatting the result.
Extra information
Options
Fantomas master branch at 2022-07-28T06:18:27Z - 9f5feff
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: