error FS0073: internal error: Unexpected definition (AutoProperty
([], false, X, None, PropertyGetSet, <fun:_fsyacc_reductions@2322-424>,
PreXmlDoc ((7,4), FSharp.Compiler.Xml.XmlDocCollector), None,
\test.fsx (7,17--7,18),
Const
(String
("", Regular,
\test.fsx (7,19--7,21)),
\test.fsx (7,19--7,21)),
Some
\test.fsx (7,22--7,26),
Some
\test.fsx (7,22--7,35),
\test.fsx (7,4--7,21)),
ContainerInfo
(Parent FSI_0002,
Some
(MemberOrValContainerInfo
(FooImpl,
Some
(Foo,
SlotImplSet
([RequiredSlot (FSMeth (<TcGlobals>, Foo, X, None), false);
RequiredSlot (FSMeth (<TcGlobals>, Foo, X, None), false)],
map
[("get_X",
[RequiredSlot (FSMeth (<TcGlobals>, Foo, X, None), false)]);
("set_X",
[RequiredSlot (FSMeth (<TcGlobals>, Foo, X, None), false)])],
[], [FSProp (<TcGlobals>, Foo, Some X, Some X)])), None,
NoSafeInitInfo, []))))
Compiles.
To not use a record.
Under .net framework FSI, I'm getting internal error:
Repro steps
Actual behavior
Expected behavior
Compiles.
Known workarounds
To not use a record.
Related information