mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 18:24:01 +00:00
re-enable rodfiles tests; fixes #91
This commit is contained in:
14
tests/run/tenumitems.nim
Normal file
14
tests/run/tenumitems.nim
Normal file
@@ -0,0 +1,14 @@
|
||||
discard """
|
||||
output: "A\nB\nC"
|
||||
"""
|
||||
|
||||
type TAlphabet = enum
|
||||
A, B, C
|
||||
|
||||
iterator items(E: typedesc): E =
|
||||
for v in low(E)..high(E):
|
||||
yield v
|
||||
|
||||
for c in TAlphabet:
|
||||
echo($c)
|
||||
|
||||
Reference in New Issue
Block a user