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
parent f3d57761ab
commit 233c6a2fba

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
## respected.
when defined(gcDestructors):
when false: # defined(gcDestructors):
proc add*[T](x: var seq[T], y: sink openArray[T]) {.noSideEffect.} =
## Generic proc for adding a container `y` to a container `x`.
##