Skip to content

Could not load type 'FSI_0003+dataRecord[]' from assembly 'FSI-ASSEMBLY #1

@madeinquant

Description

@madeinquant

with the following piece of code.

type DigitRecord = { Label:int; Pixels:int[] }
let dataRecords = 
    dataNumbers 
    |> Array.map (fun record -> {Label = record.[0]; Pixels = record.[1..]})

I got a error message with F# interactive 4.1 on mono 4.8. It may be the internal error of mono,
I did a workaround to bypass the error, it seem it works now.

type DigitRecord = { Label:int; Pixels:int[] }
let x = { Label = 1 ; Pixels = [| 1; 2; 3 |]}
let dataRecords = 
   dataNumbers 
   |> Array.map (fun record -> {Label = record.[0]; Pixels = record.[1..]})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions