commit
95b4a9ca41
1 changed files with 1 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ proc instantiateDestructor(c: PContext, typ: PType): PType =
|
||||||
t = t.skipTypes({tyGenericInst})
|
t = t.skipTypes({tyGenericInst})
|
||||||
case t.kind
|
case t.kind
|
||||||
of tySequence, tyArray, tyArrayConstr, tyOpenArray, tyVarargs:
|
of tySequence, tyArray, tyArrayConstr, tyOpenArray, tyVarargs:
|
||||||
|
t.destructor = analyzingDestructor
|
||||||
if instantiateDestructor(c, t.sons[0]) != nil:
|
if instantiateDestructor(c, t.sons[0]) != nil:
|
||||||
t.destructor = getCompilerProc"nimDestroyRange"
|
t.destructor = getCompilerProc"nimDestroyRange"
|
||||||
return t
|
return t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue