Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions tests/FSharp.Compiler.ComponentTests/Scripting/Interactive.fs
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,26 @@ asm.GetCustomAttributes(typeof<System.Diagnostics.DebuggableAttribute>, false)
| Result.Error ex -> raise ex

Assert.Equal(1, flags.Length)

// https://github.com/dotnet/fsharp/issues/14454
[<FSharp.Test.FactForNETCOREAPP>]
let ``Issue 14454 - IAsyncDisposable use in task CE`` () =
Fsx
"""
open System
open System.Threading.Tasks

let asyncDisposable =
{ new IAsyncDisposable with
member _.DisposeAsync() = ValueTask() }

let t =
task {
use d = asyncDisposable
return ()
}

t.Wait()
"""
|> eval
|> shouldSucceed