From 6dcaafc70c218a059f6fa11efa59c91a81522e04 Mon Sep 17 00:00:00 2001 From: Clay Sweetser Date: Sat, 18 Jun 2016 23:53:41 -0400 Subject: Fix #4393 --- compiler/semdestruct.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/semdestruct.nim') 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 -- cgit 1.4.1-2-gfad0