twhen_in_enum.nim 223 B

123456789101112
  1. discard """
  2. errormsg: "identifier expected, but got 'keyword when'"
  3. """
  4. # bug #2123
  5. type num = enum
  6. NUM_NONE = 0
  7. NUM_ALL = 1
  8. when defined(macosx): NUM_OSX = 10 # only this differs for real
  9. NUM_XTRA = 20