diff options
author | Araq <rumpf_a@web.de> | 2012-06-16 18:29:22 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-06-16 18:29:22 +0200 |
commit | 7b539c9e582e441cdb7e078cdbe247d06a74ad0e (patch) | |
tree | 52935ee23bdee453c8a0d6d9f4e13a70bfccaec7 /tests/run | |
parent | 15dad22a0adec4e93e062b54fa4ff06281f089ad (diff) | |
download | Nim-7b539c9e582e441cdb7e078cdbe247d06a74ad0e.tar.gz |
simple example works again
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/tclosure2.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/run/tclosure2.nim b/tests/run/tclosure2.nim index c71cc9f1c..b44c92db7 100644 --- a/tests/run/tclosure2.nim +++ b/tests/run/tclosure2.nim @@ -23,14 +23,15 @@ when true: proc bx = if i > 10: return i += 1 - for j in 0 .. 0: echo i + #for j in 0 .. 0: echo i bx() bx() + echo i ax() -when true: +when false: proc accumulator(start: int): (proc(): int {.closure.}) = var x = start-1 #let dummy = proc = |