summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorClay Sweetser <clay.sweetser@gmail.com>2016-06-18 23:53:41 -0400
committerClay Sweetser <clay.sweetser@gmail.com>2016-06-18 23:53:41 -0400
commit6dcaafc70c218a059f6fa11efa59c91a81522e04 (patch)
tree26f9733f6ade59e118f864ab02388fe07266f089
parent318e1e2c6ab879e23c2abe2d767766f52523c112 (diff)
downloadNim-6dcaafc70c218a059f6fa11efa59c91a81522e04.tar.gz
Fix #4393
-rw-r--r--compiler/semdestruct.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semdestruct.nim b/compiler/semdestruct.nim
index 1261dd460..18a1c262f 100644
--- a/compiler/semdestruct.nim
+++ b/compiler/semdestruct.nim
@@ -139,6 +139,7 @@ proc instantiateDestructor(c: PContext, typ: PType): PType =
   t = t.skipTypes({tyGenericInst})
   case t.kind
   of tySequence, tyArray, tyArrayConstr, tyOpenArray, tyVarargs:
+    t.destructor = analyzingDestructor
     if instantiateDestructor(c, t.sons[0]) != nil:
       t.destructor = getCompilerProc"nimDestroyRange"
       return t