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
typeClass()=memberthis.kk()=async{
mock.Setup
(fun m -> m.CreateBlah(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<Id>(), It.IsAny<uint32>()))
.Returns(
Some mock
)
.End
}|> Async.StartImmediate
Problem description
The resulting code is not valid F#.
Note this code uses Moq. The .End property is an in-house extension property that does the same as |> ignore. Indeed, replacing it with |> ignore is a workaround here as fantomas generates valid code then.
This started happening with fantomas 4.4. Fixing this would really help us as it happens in about a million files.
Extra information
[x ] The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Issue created from fantomas-online
Code
Result
Problem description
The resulting code is not valid F#.
Note this code uses Moq. The
.End
property is an in-house extension property that does the same as|> ignore
. Indeed, replacing it with|> ignore
is a workaround here as fantomas generates valid code then.This started happening with fantomas 4.4. Fixing this would really help us as it happens in about a million files.
Extra information
Options
Fantomas Master at 04/17/2021 11:23:36 - 26674f9
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: