Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table.ToRows() doesn't work for non-public F# records #2

Open
dvoits opened this issue Jan 20, 2017 · 0 comments
Open

Table.ToRows() doesn't work for non-public F# records #2

dvoits opened this issue Jan 20, 2017 · 0 comments

Comments

@dvoits
Copy link

dvoits commented Jan 20, 2017

Description

When I declare an internal F# record and then use it as a generic type parameter for Table.ToRows(), it throws ArgumentNullException.

Repro steps

type internal InternalRecord = { x: float }
    
[<Test; Category("CI")>]
let ``Table.ToRows works for internal records``() =
    let t = Table.OfColumns [Column.Create("x", [1.0])]
    let rows = t.ToRows<InternalRecord>() |> Seq.toList
    Assert.AreEqual([ {x=1.0} ], rows)

Expected behavior

The given test must pass.

Actual behavior

Throws an exception when calling t.ToRows.

Known workarounds

Make the record public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant