summary refs log tree commit diff stats
path: root/tests/run
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-26 02:43:32 +0100
committerAraq <rumpf_a@web.de>2012-11-26 02:43:32 +0100
commitdd9ad9e49730cec954e9113f0136053c5020aafd (patch)
tree09cce2a19da1d7688a021b3c5fd6e603656c599b /tests/run
parent538699a2810017981b4cb8b6994c0da0afeb0452 (diff)
downloadNim-dd9ad9e49730cec954e9113f0136053c5020aafd.tar.gz
next steps for first class iterators
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/titer8.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run/titer8.nim b/tests/run/titer8.nim
index 34067c414..af0e643f1 100644
--- a/tests/run/titer8.nim
+++ b/tests/run/titer8.nim
@@ -79,7 +79,7 @@ iterator count2(): int {.closure.} =
 
 # a first class iterator has the type 'proc {.closure.}', but maybe
 # it shouldn't:
-proc invoke(iter: proc(): int {.closure.}) =
+proc invoke(iter: iterator(): int {.closure.}) =
   for x in iter(): echo x
 
 invoke(count0)
@@ -88,7 +88,7 @@ invoke(count2)
 
 # simple tasking:
 type
-  TTask = proc (ticker: int) {.closure.}
+  TTask = iterator (ticker: int)
 
 iterator a1(ticker: int) {.closure.} =
   echo "a1: A"