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
moduleFooletx=[||]// After empty arraylety=// Before empty array[||]
Result
moduleFooletx=[||]lety=[||]
Problem description
Fantomas removes comments that occur before or after an empty array literal. The formatted code should keep both comments. Non-empty array literals work correctly, though.
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.
Thanks for taking the time to report this issue!
At first glance, this seems like a Trivia bug. The code comments are detected from the F# tokens but not printed out in CodePrinter.
Issue created from fantomas-online
Code
Result
Problem description
Fantomas removes comments that occur before or after an empty array literal. The formatted code should keep both comments. Non-empty array literals work correctly, though.
Extra information
Options
Fantomas Master at 12/09/2020 20:05:59 - f93af00
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: