From e6c5622aa74c1014b022071d9d525a0e13805246 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 14 Nov 2016 23:18:30 +0100 Subject: removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes --- compiler/semdestruct.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/semdestruct.nim') diff --git a/compiler/semdestruct.nim b/compiler/semdestruct.nim index 85d106056..a8873bbe2 100644 --- a/compiler/semdestruct.nim +++ b/compiler/semdestruct.nim @@ -136,9 +136,9 @@ proc instantiateDestructor(c: PContext, typ: PType): PType = else: return nil - t = t.skipTypes({tyGenericInst}) + t = t.skipTypes({tyGenericInst, tyAlias}) case t.kind - of tySequence, tyArray, tyArrayConstr, tyOpenArray, tyVarargs: + of tySequence, tyArray, tyOpenArray, tyVarargs: t.destructor = analyzingDestructor if instantiateDestructor(c, t.sons[0]) != nil: t.destructor = getCompilerProc"nimDestroyRange" -- cgit 1.4.1-2-gfad0