* fix #14217 Co-authored-by: cooldome <ariabushenko@bk.ru>
This commit is contained in:
parent
64e839d5fd
commit
eefada8a88
3 changed files with 29 additions and 3 deletions
|
|
@ -1193,7 +1193,7 @@ when notJSnotNims and hasAlloc and not defined(nimSeqsV2):
|
|||
proc addChar(s: NimString, c: char): NimString {.compilerproc, benign.}
|
||||
|
||||
when defined(nimscript) or not defined(nimSeqsV2):
|
||||
proc add*[T](x: var seq[T], y: T) {.magic: "AppendSeqElem", noSideEffect.}
|
||||
proc add*[T](x: var seq[T], y: sink T) {.magic: "AppendSeqElem", noSideEffect.}
|
||||
## Generic proc for adding a data item `y` to a container `x`.
|
||||
##
|
||||
## For containers that have an order, `add` means *append*. New generic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue