mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-19 01:18:32 +00:00
system.nim: minor fix for the new 'unown' template
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user