diff options
author | Araq <rumpf_a@web.de> | 2016-11-14 23:18:30 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-11-14 23:18:30 +0100 |
commit | e6c5622aa74c1014b022071d9d525a0e13805246 (patch) | |
tree | fe50571aaf2f34ec7f36fb1068b5f3ffbd97250d /compiler/semdestruct.nim | |
parent | b234b082b60e57ec07a380599b6b7a311026d0ed (diff) | |
download | Nim-e6c5622aa74c1014b022071d9d525a0e13805246.tar.gz |
removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes
Diffstat (limited to 'compiler/semdestruct.nim')
-rw-r--r-- | compiler/semdestruct.nim | 4 |
1 files changed, 2 insertions, 2 deletions
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" |