bugfix: multiple yield statements and loop body vars

This commit is contained in:
Araq 2010-12-13 07:58:35 +01:00
commit 63ac32e6de
13 changed files with 256 additions and 75 deletions

View file

@ -9,7 +9,9 @@ proc QuickSort(list: seq[int]): seq[int] =
left.add(list[i])
elif list[i] > pivot:
right.add(list[i])
result = QuickSort(left) & pivot & QuickSort(right)
result = QuickSort(left) &
pivot &
QuickSort(right)
proc echoSeq(a: seq[int]) =
for i in low(a)..high(a):