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 request for using an enum value within an enum #630

Open
davecamp opened this issue Jul 28, 2023 · 0 comments
Open

Feature request for using an enum value within an enum #630

davecamp opened this issue Jul 28, 2023 · 0 comments

Comments

@davecamp
Copy link

davecamp commented Jul 28, 2023

Feature Request

This would be nice if this compiled

Enum SomeFlag
	FlagA = 1
	FlagB = 2
	FlagC = 4
	FlagAll = SomeFlag.FlagA | SomeFlag.FlagB | SomeFlag.FlagC
EndEnum

Currently it gives an error 'Compile Error: Cyclic declaration of 'SomeFlag'.' which is fair enough.

And it's not a big deal to work around of course.
Just food for thought as the values are only constants.

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

No branches or pull requests

1 participant