Skip to content

Bug: REFAllValuesIn\TypeName\() returns one more value #12

@chiahsien

Description

@chiahsien

For example, I have an enum like this:

REFLECTABLE_ENUM (NSInteger, ApiError,
    /* Login errors */
    ApiErrorStoreIDNotFound              = 701,
    ApiErrorUserNameNotFound             = 702,
    ApiErrorPasswordAuthenticationFailed = 703
);

NSLog(@"%@", REFAllValuesInApiError());

And then I got this:

(
    701,
    702,
    703,
    704
)

704 doesn't exist in the enum, but it is returned from REFAllValuesIn.
Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions