temptycaseobj.nim 222 B

123456789101112131415
  1. discard """
  2. line: 11
  3. errormsg: "identifier expected, but found 'keyword of'"
  4. """
  5. type
  6. TMyEnum = enum enA, enU, enO
  7. TMyCase = object
  8. case e: TMyEnum
  9. of enA:
  10. of enU: x, y: int
  11. of enO: a, b: string