mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 20:47:53 +00:00
Use 'typedesc' instead of 'untyped'
This commit is contained in:
@@ -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..
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user