summary refs log tree commit diff stats
path: root/tests/parser/twhen_in_enum.nim
blob: 3890b686ee7a71d7bd8183bd627828e917be5b3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
discard """
  errormsg: "identifier expected, but got 'keyword when'"
"""

# bug #2123
type num = enum
    NUM_NONE = 0
    NUM_ALL = 1
    when defined(macosx): NUM_OSX = 10 # only this differs for real
    NUM_XTRA = 20