summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index a43b0435b..09b85d32b 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -88,8 +88,7 @@ proc new*[T](a: var ref T, finalizer: proc (x: ref T)) {.
   ## the object! This means that for each object of type `T` the finalizer
   ## will be called!
   
-proc reset*(obj: var T) {.magic: "Reset", noSideEffect.}
-proc reset*(obj: ref T) {.noSideEffect.} = reset(obj^)
+proc reset*[T](obj: var T) {.magic: "Reset", noSideEffect.}
   ## resets an object `obj` to its initial (binary zero) value. This needs to
   ## be called before any possible `object branch transition`:idx:.