diff options
Diffstat (limited to 'tests/run/titer9.nim')
-rw-r--r-- | tests/run/titer9.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run/titer9.nim b/tests/run/titer9.nim index 0d6c466c1..99874e70a 100644 --- a/tests/run/titer9.nim +++ b/tests/run/titer9.nim @@ -4,17 +4,17 @@ discard """ 0''' """ -iterator count(x: int, skip: bool): int {.closure.} = +iterator count[T](x: T, skip: bool): int {.closure.} = if skip: return x+10 else: yield x+1 if skip: return x+10 else: yield x+2 -proc takeProc(x: iterator (x: int, skip: bool): int) = +proc takeProc[T](x: iterator (x: T, skip: bool): int) = echo x(4, false) echo x(4, true) echo x(4, false) -takeProc(count) +takeProc(count[int]) |