ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

enums.zs 163B

123456789101112131415
  1. enum TestEnum {
  2. HELLO,
  3. WORLD
  4. }
  5. enum TestEnum2 {
  6. HELLO("Hello"),
  7. WORLD("World");
  8. val value as string;
  9. this(value as string) {
  10. this.value = value;
  11. }
  12. }