t7699.nim 225 B

12345678910111213141516
  1. discard """
  2. errormsg: "case statement cannot work on enums with holes for computed goto"
  3. line: 13
  4. """
  5. type
  6. X = enum
  7. A = 0, B = 100
  8. var z = A
  9. while true:
  10. {.computedGoto.}
  11. case z
  12. of A: discard
  13. of B: discard