disabled sink openArray[T] for adding to seqs (#16352) [backport:1.4]

This commit is contained in:
lqdev 2020-12-14 20:13:43 +01:00 • committed by GitHub
commit 233c6a2fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1215,7 +1215,7 @@ when defined(nimscript) or not defined(nimSeqsV2):
## Generic code becomes much easier to write if the Nim naming scheme is ## Generic code becomes much easier to write if the Nim naming scheme is
## respected. ## respected.
when defined(gcDestructors): when false: # defined(gcDestructors):
proc add*[T](x: var seq[T], y: sink openArray[T]) {.noSideEffect.} = proc add*[T](x: var seq[T], y: sink openArray[T]) {.noSideEffect.} =
## Generic proc for adding a container `y` to a container `x`. ## Generic proc for adding a container `y` to a container `x`.
## ##