Closed
Description
I get an unexpected FS3570 when using nested ignored tuple elements:
type A = { A: int }
let f ((_x, y), z) = z |> Option.map _.A
Expected behavior
Compiles.
Actual behavior
Error FS3570 : The meaning of _ is ambiguous here. It cannot be used for a discarded variable and a function shorthand in the same scope.
Known workarounds
Don't use shorthand lambda, or don't ignore nested tuple elements.
Metadata
Metadata
Assignees
Type
Projects
Status
Done