Private Enum and user-defined types cannot be used as parameters or return types for public procedures, public data members, or fields of public user-defined types ...
An Enum is adata type that can be used to create groups of related constants (called enumerations). This error has the following causes and solutions: ...