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
let inlinedeserialize<^awhen( ^a or FromJsonDefaults):(static member FromJson :^a->Json< ^a>)>json =
json |> Json.parse |> Json.deserialize<^a>
Result
let inlinedeserialize<^awhen^a:(static member FromJson:^a->Json< ^a >)>json =
json |> Json.parse |> Json.deserialize<^a>
Problem description
See title.
Note, that let inline deserialize< ^a when ( ^a or ^b) : (static member FromJson : ^a -> Json< ^a>)> json = json |> Json.parse |> Json.deserialize< ^a> works correctly.
Issue created from fantomas-online
Code
Result
Problem description
See title.
Note, that
let inline deserialize< ^a when ( ^a or ^b) : (static member FromJson : ^a -> Json< ^a>)> json = json |> Json.parse |> Json.deserialize< ^a>
works correctly.Related to #984.
Extra information
Options
Fantomas master branch at 2022-03-27T13:24:16Z - fbd4b7f
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: