diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-12-04 15:39:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 15:39:14 +0800 |
commit | 55373e65b44c5d15ced134fb59ef24ccfbeee64c (patch) | |
tree | 15146b7e30fb681aee910e7b45fdb8a0bb14e667 /tests/objects | |
parent | 83493e42949fb954c66961328dde50a32f916743 (diff) | |
download | Nim-55373e65b44c5d15ced134fb59ef24ccfbeee64c.tar.gz |
unpublic `arrayWith` and rename it to `nimArrayWith` (#21006)
* unpublic arrayWith * unindent
Diffstat (limited to 'tests/objects')
-rw-r--r-- | tests/objects/tobject_default_value.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/objects/tobject_default_value.nim b/tests/objects/tobject_default_value.nim index 7ea4b42ae..cdc6016e0 100644 --- a/tests/objects/tobject_default_value.nim +++ b/tests/objects/tobject_default_value.nim @@ -267,7 +267,7 @@ template main {.dirty.} = doAssert $(@my) == """@['\x00', '\x00', '\x00', '\x00', '\x00']""" block: # array - var x: array[10, Object] = arrayWith(default(Object), 10) + var x: array[10, Object] = default(array[10, Object]) let y = x[0] doAssert y.value == 12 doAssert y.time == 1.2 |