Skip to content
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

feature: replace MyCLabs Enum constructor call #6588

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

carlosvinicius
Copy link
Contributor

The My C-Labs enum allows instantiation as a class using new instead of the static method from. (ref).
image

As it is not applicable for native enums, this PR allows the enum instantiations that use the new statement to be replaced by the static method from.

Enums that override the default My C-Labs enum constructor are skipped.

@carlosvinicius carlosvinicius force-pushed the feature/replace-myclabs-enum-constructor-call branch from 158efc5 to ca5a6d2 Compare December 14, 2024 19:38
@carlosvinicius carlosvinicius force-pushed the feature/replace-myclabs-enum-constructor-call branch from ca5a6d2 to f4cd998 Compare December 14, 2024 19:56
@carlosvinicius carlosvinicius force-pushed the feature/replace-myclabs-enum-constructor-call branch from e77a7cf to 6e76750 Compare December 16, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants