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
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.namespaceMicrosoft.FSharp.Control[<Sealed>][<CompiledName("FSharpAsync")>]typeAsync=static memberAwaitEvent:event:IEvent<'Del,'T>* ?cancelAction :(unit -> unit)-> Async<'T> when 'Del : delegate<'T,unit> and 'Del :> System.Delegate
Result
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.namespaceMicrosoft.FSharp.Control[<Sealed>][<CompiledName("FSharpAsync")>]typeAsync=static memberAwaitEvent:event:IEvent<'Del,'T>*(unit -> unit) ->Async<'T>when 'Del:delegate<'T,unit>and 'Del :>System.Delegate
Issue created from fantomas-online
Code
Result
Problem description
cancelAction
was lost after formatting.This leads to a compiler bug in the original source at: https://github.com/dotnet/fsharp/blob/dab9d43fe3530f1df8de11fec4d5d278e8f3893e/src/fsharp/FSharp.Core/async.fsi#L360-L380
Extra information
Options
Fantomas master branch at 2022-03-11T12:09:54Z - b2d96b2
Default Fantomas configuration
Signature file
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: