Fable
Fable copied to clipboard
Add support for `try ... with` inside of collection expressions
Description
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