Skip to content

Anonymous Record error in fsi #6411

@kevmal

Description

@kevmal

FSI has issues if on first use of an anonymous record an exception is thrown.

Repro steps

let a = {|A = 1|}
do failwith ""

Run the above twice in FSI. On first run an exception is thrown as exprected, on second run there's an error

C:\Users\User\AppData\Local\Temp\unknown(1,1): error FS3216: type '<>f__AnonymousType1324739542`1'' not found in assembly '<emitted>'. A possible cause may be a version incompatibility. You may need to explicitly reference the correct version of this assembly to allow all referenced components to use the correct version.

Expected behavior

Exception thrown both times.

Actual behavior

Error FS3216.

Known workarounds

Reset FSI.

Related information

Tested on VS2019 preview 4.4

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions