887da67 introduced back compat support for underscore enum members. However, it seems to not fully an extensible enum's custom code implementation.
In example, this enum has a custom implementation. The newly generated type removes the members that were used in custom code.
When attempting to restore the enum members with underscores, we should check the CanonicalView to validate they do not already exist in custom code.
887da67 introduced back compat support for underscore enum members. However, it seems to not fully an extensible enum's custom code implementation.
In example, this enum has a custom implementation. The newly generated type removes the members that were used in custom code.
When attempting to restore the enum members with underscores, we should check the CanonicalView to validate they do not already exist in custom code.