mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
17 lines
216 B
Nim
17 lines
216 B
Nim
# 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"
|
|
|