diff options
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" |