Use 'typedesc' instead of 'untyped'
This commit is contained in:
parent
b02ecda5a0
commit
6976bf20f5
1 changed files with 1 additions and 1 deletions
|
|
@ -706,7 +706,7 @@ template newSeqWith*(len: int, init: untyped): untyped =
|
|||
result[i] = init
|
||||
result
|
||||
|
||||
macro asArray*(targetType: untyped, values: typed): untyped =
|
||||
macro asArray*(targetType: typedesc, values: typed): untyped =
|
||||
## applies a type conversion to each of the elements in the specified
|
||||
## array literal. Each element is converted to the ``targetType`` type..
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue