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
It's probably a corner case, but it's breaking the repl:
module App
let test xss =
let f xss = xss |> List.choose (function Some a -> Some a | _ -> None)
xss |> f |> List.collect (fun xs -> [ for s in xs do yield s ])
[<EntryPoint>]
let main argv =
let res = test [ Some [ "a" ] ]
printfn "res: %A" res
0
runtime error:
Seq.js:470
}, xs[Symbol.iterator]()));
^
TypeError: xs[Symbol.iterator] is not a function
basically, the issue is xs does not have the correct value, the correct value is in the xs.value property.
The text was updated successfully, but these errors were encountered:
Damn, the change with Options is affecting more places than expected, as happened with the uncurrying optimization. Let's see if we don't have many more surprises... I hope I'm not introducing too many exceptional behaviours in Fable 🙏
Thanks for reporting and for the code to reproduce the issue as always @ncave!
It's probably a corner case, but it's breaking the repl:
runtime error:
basically, the issue is
xs
does not have the correct value, the correct value is in thexs.value
property.The text was updated successfully, but these errors were encountered: