bugfix: system.& for sequences

This commit is contained in:
Araq
2013-07-27 01:28:13 +02:00
parent 698eac2a94
commit fca23d1675

View File

@@ -1454,9 +1454,9 @@ proc `&` *[T](x: seq[T], y: T): seq[T] {.noSideEffect.} =
proc `&` *[T](x: T, y: seq[T]): seq[T] {.noSideEffect.} =
newSeq(result, y.len + 1)
result[0] = x
for i in 0..y.len-1:
result[i] = y[i]
result[y.len] = x
result[i+1] = y[i]
when not defined(NimrodVM):
when not defined(JS):