Fable icon indicating copy to clipboard operation
Fable copied to clipboard

Add support for `try ... with` inside of collection expressions

Open MangelMaxime opened this issue 1 year ago • 0 comments

Description

See F# 8 announcement

Repro code


    testCase "try with inside of list expression works" <| fun () ->
        let sum =
                [ for x in [0;1] do
                        try
                                yield 1
                                yield (10/x)
                                yield 100
                        with _ ->
                                yield 1000 ]
                |> List.sum

        equal 1112 sum

MangelMaxime avatar Nov 15 '23 20:11 MangelMaxime