fixes #5383
This commit is contained in:
parent
95abf30fae
commit
97e26967f1
11 changed files with 60 additions and 17 deletions
|
|
@ -19,3 +19,16 @@ proc foo(): void =
|
|||
echo repr(v1 *** v2)
|
||||
|
||||
foo()
|
||||
|
||||
# bug #5383
|
||||
import sequtils
|
||||
|
||||
proc zipWithIndex[A](ts: seq[A]): seq[(int, A)] =
|
||||
toSeq(pairs(ts))
|
||||
|
||||
proc main =
|
||||
discard zipWithIndex(@["foo", "bar"])
|
||||
discard zipWithIndex(@[1, 2])
|
||||
discard zipWithIndex(@[true, false])
|
||||
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue