Created
January 12, 2019 23:34
-
-
Save vexx32/88dd476a621e7f0970addf693535e3f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allow self-referential definitions | |
[Flags()] | |
enum Food { | |
Apple | |
Banana | |
Celery | |
Grape | |
Fruit = Apple -bor Banana -bor Grape | |
} | |
# allow mixed definitions | |
enum Flowers { | |
Rose | |
Lily | |
Marigold = 2 | |
Violet | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment