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
openMicrosoft.FSharp.Reflection[<Struct>]typeMySharedStructDu=| A ofint64| B ofint64for value in[A 1L; B 2L]doletcaseInfo,inner = FSharpValue.GetUnionFields(value, typeof<MySharedStructDu>)
printfn $"Inner value for case %s{caseInfo.Name} is %A{inner}"
Expected behavior
Inner value for case A is [|1L|]
Inner value for case B is [|2L|]
Actual behavior
Inner value for case A is [|1L|]
Inner value for case B is [||]
Known workarounds
I don't know of any, though to be fair I haven't looked for any either.