system.nim: minor fix for the new 'unown' template

This commit is contained in:
Araq
2019-05-29 20:49:36 +02:00
parent 9ecb1aae80
commit eb471acffb

View File

@@ -1654,7 +1654,7 @@ when defined(nimV2) and not defined(nimscript):
else:
template owned*(t: typeDesc): typedesc = t
template unown*(x: typed): typed = x
template unown*(x: typed): untyped = x
proc new*[T](a: var ref T) {.magic: "New", noSideEffect.}
## Creates a new object of type ``T`` and returns a safe (traced)