diff options
-rw-r--r-- | compiler/semdestruct.nim | 1 |
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 |