diff options
author | Araq <rumpf_a@web.de> | 2012-11-26 02:43:32 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-26 02:43:32 +0100 |
commit | dd9ad9e49730cec954e9113f0136053c5020aafd (patch) | |
tree | 09cce2a19da1d7688a021b3c5fd6e603656c599b /tests/run | |
parent | 538699a2810017981b4cb8b6994c0da0afeb0452 (diff) | |
download | Nim-dd9ad9e49730cec954e9113f0136053c5020aafd.tar.gz |
next steps for first class iterators
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/titer8.nim | 4 |
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" |