summary refs log tree commit diff stats
path: root/tests/proc/tprocredef.nim
Commit message (Expand)AuthorAgeFilesLines
* new tester; all tests categorizedAraq2014-01-131-0/+9
+0200 committer Araq <rumpf_a@web.de> 2012-09-08 22:33:15 +0200 unittest bugfix; made some tests green' href='/ahoang/Nim/commit/tests/run/tenumitems.nim?h=devel&id=46f652b93eec44f25de25df9e9362448d857bfbe'>46f652b93 ^
238202ccb ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14






                     
                                      





                           
discard """
  output: "A\nB\nC"
"""

type TAlphabet = enum
  A, B, C

iterator items(E: typedesc[enum]): E =
  for v in low(E)..high(E):
    yield v

for c in TAlphabet:
  echo($c)