Skip to content

Fsi error with nested struct record  #10060

@kevmal

Description

@kevmal
[<Struct>]
type RecordA = { Value : double }

[<Struct>]
type RecordB = { A : RecordA }

{ A = { Value = 0.0 } }

In fsi produces the error:

error FS0193: internal error: Could not load type 'FSI_0004' from assembly 'FSI-ASSEMBLY, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Tested both

  • F# Interactive version 11.0.0.0 for F# 5.0
  • F# Interactive version 10.9.1.0 for F# 4.7

Some other notes:

  • With fsc, the fsx file compiles and runs fine
  • If either record is not a struct it runs fine
  • It can be run in pieces. Definitions first, then record ctor and it runs fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FSIBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions