aboutsummaryrefslogtreecommitdiff
path: root/std/prelude/clone.pk
diff options
context:
space:
mode:
Diffstat (limited to 'std/prelude/clone.pk')
-rw-r--r--std/prelude/clone.pk2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/prelude/clone.pk b/std/prelude/clone.pk
index 5d11cdb..0ddfcf6 100644
--- a/std/prelude/clone.pk
+++ b/std/prelude/clone.pk
@@ -18,7 +18,7 @@ pub func clone[T: Clone](self: tuple[T]): tuple[T] =
...
## Implementation of `clone` for arrays of any size.
-pub func clone[T: Clone, size: static[uint]](self: array[T, size]): array[T, size] =
+pub func clone[T: Clone, size: const uint](self: array[T, size]): array[T, size] =
var res: array[T, size]
for i in 0 .. size do
res.push(self.i.clone)