diff options
author | Clay Sweetser <clay.sweetser@gmail.com> | 2016-06-18 23:53:41 -0400 |
---|---|---|
committer | Clay Sweetser <clay.sweetser@gmail.com> | 2016-06-18 23:53:41 -0400 |
commit | 6dcaafc70c218a059f6fa11efa59c91a81522e04 (patch) | |
tree | 26f9733f6ade59e118f864ab02388fe07266f089 /compiler/semdestruct.nim | |
parent | 318e1e2c6ab879e23c2abe2d767766f52523c112 (diff) | |
download | Nim-6dcaafc70c218a059f6fa11efa59c91a81522e04.tar.gz |
Fix #4393
Diffstat (limited to 'compiler/semdestruct.nim')
-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 |