-
Notifications
You must be signed in to change notification settings - Fork 803
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
Make enum cases public #5002
Make enum cases public #5002
Conversation
KevinRansom
commented
May 25, 2018
- Current F# Code generation for internal Enums makes the cases internal. This PR aligns our code gen with C# by generating Enum Cases that are public, under all conditions.
IsHiddenRecdField eenv.sigToImplRemapInfo (tcref.MakeNestedRecdFieldRef fspec)) | ||
let isPropHidden = | ||
// Enums always have public cases irrespective of Enum Visibility | ||
if tycon.IsEnumTycon then false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value__
field in enums should always be private, I think this will have changed?.
Also we need to have a CodeGen test for enums...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I expect it will. I can fix those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.