New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSI generates internal error: Index not found with Struct DU #2363
Comments
Are multi-case struct DUs supposed to work? I thought only single-case DUs could be represented as structs. (That is, I thought the expected behavior would be a compile-time error, not runtime success) |
@kbattocchi Multicase DUs are now supported in F# 4.1, although there is currently a bug with them: #1678 |
I see; it looks like the RFC states
but presumably this was supposed to say unique type instead? In which case this would again be expected to fail at compile-time. (As an aside, I had trouble finding the RFC because several of the links to it are dead since it was moved from /RFCs to /FSharp-4.1) |
@dsyme could comment further, but the intention to my understanding is that they simply require unique names. They shouldn't also require unique types. |
@kbattocchi Works in FSI
Fails in FSI
|
The compiler doesn't like it either:
Fails with:
|
Same underlying issue as #1678 then. Bah. |
Yes, my apologies for #1678. We will address it in F# 4.2 (or next update of F# 4.1) For now we have to list it as a known limitation. |
I'll close this as a duplicate of #1678 |
Expected: FSI executes and the type is registered.
Actual:
error FS0193: internal error: Index not found. (Exception from HResult: 0x80131124
The text was updated successfully, but these errors were encountered: