unpublic arrayWith and rename it to nimArrayWith (#21006)
* unpublic arrayWith * unindent
This commit is contained in:
parent
83493e4294
commit
55373e65b4
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue