diff options
author | Araq <rumpf_a@web.de> | 2010-12-13 07:58:35 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2010-12-13 07:58:35 +0100 |
commit | 63ac32e6de018b5e175efb6f61675bfe36394973 (patch) | |
tree | 5e95795798ccdadecdbfaa8340d7382eae8ee9be /tests/accept/compile/tquicksort.nim | |
parent | e7fe8edab39884f59d685d2608f8bd944cad27e6 (diff) | |
download | Nim-63ac32e6de018b5e175efb6f61675bfe36394973.tar.gz |
bugfix: multiple yield statements and loop body vars
Diffstat (limited to 'tests/accept/compile/tquicksort.nim')
-rwxr-xr-x | tests/accept/compile/tquicksort.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/accept/compile/tquicksort.nim b/tests/accept/compile/tquicksort.nim index 421564ecd..6706a185e 100755 --- a/tests/accept/compile/tquicksort.nim +++ b/tests/accept/compile/tquicksort.nim @@ -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): |