-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
Labels
Area-FSIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Description
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
moinessim
Metadata
Metadata
Assignees
Labels
Area-FSIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Type
Projects
Status
Done