summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorephja <ephja@yandex.com>2017-09-17 15:48:02 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-17 15:48:02 +0200
commitea47234b3560d779f881cf118c8d36800cc72d0a (patch)
tree74c2ee6bcef5214685a8eca47ae47335bfb58ab4 /lib
parentae7fe5087f3e4f6ddc572254ae3ddcc8324099f1 (diff)
downloadNim-ea47234b3560d779f881cf118c8d36800cc72d0a.tar.gz
Array typedesc len (#6032)
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index a4460570a..efffeaeca 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -718,7 +718,7 @@ proc len*[TOpenArray: openArray|varargs](x: TOpenArray): int {.
   magic: "LengthOpenArray", noSideEffect.}
 proc len*(x: string): int {.magic: "LengthStr", noSideEffect.}
 proc len*(x: cstring): int {.magic: "LengthStr", noSideEffect.}
-proc len*[I, T](x: array[I, T]): int {.magic: "LengthArray", noSideEffect.}
+proc len*(x: (type array)|array): int {.magic: "LengthArray", noSideEffect.}
 proc len*[T](x: seq[T]): int {.magic: "LengthSeq", noSideEffect.}
   ## returns the length of an array, an openarray, a sequence or a string.
   ## This is roughly the same as ``high(T)-low(T)+1``, but its resulting type is