tenum2.nim 209 B

1234567891011121314151617
  1. # Test that enum with holes is handled correctly by case statement
  2. type
  3. TEnumHole = enum
  4. eA = 0,
  5. eB = 4,
  6. eC = 5
  7. var
  8. e: TEnumHole = eB
  9. case e
  10. of eA: echo "A"
  11. of eB: echo "B"
  12. of eC: echo "C"