Skip to content

Commit b83dea3

Browse files
committed
hadle openarray explicitly
1 parent bd9694e commit b83dea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/pure/collections/sequtils.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ template anyIt*(s, pred: untyped): bool =
663663

664664
template toSeqBuiltin[IX, T](arg: array[IX, T]): seq[T] = @arg
665665

666+
template toSeqBuiltin[T](arg: openArray[T]): seq[T] = @arg
667+
666668
template toSeqBuiltin(arg: string): seq[char] = @arg
667669

668670
template toSeqBuiltin[T](arg: seq[T]): seq[T] = arg

0 commit comments

Comments
 (0)