Files
Nim/tests/parser/twhen_in_enum.nim
2015-02-14 18:11:52 +01:00

12 lines
225 B
Nim

discard """
errormsg: "identifier expected, but found '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