forward assign declarations (#65)

This commit is contained in:
Jacek Sieka 2020-12-10 17:08:24 +01:00 committed by GitHub
parent d8d914332d
commit 46068b49ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ import
{.push raises: [Defect].}
func assign*[T](tgt: var seq[T], src: openArray[T]) {.gcsafe.}
func assign*[T](tgt: var openArray[T], src: openArray[T]) {.gcsafe.}
func assign*[T](tgt: var T, src: T) {.gcsafe.}
func assignImpl[T](tgt: var openArray[T], src: openArray[T]) =
mixin assign
when supportsCopyMem(T):