summary refs log tree commit diff stats
path: root/tests/enum/tenum2.nim
blob: 3e34a21ce9983056583bb17bb578ff0c70b6899e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test that enum with holes is handled correctly by case statement

type
  TEnumHole = enum
    eA = 0,
    eB = 4,
    eC = 5

var
  e: TEnumHole = eB

case e
of eA: echo "A"
of eB: echo "B"
of eC: echo "C"