summary refs log tree commit diff stats
path: root/compiler/semdestruct.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-10-24 20:20:20 +0200
committerAraq <rumpf_a@web.de>2016-10-24 20:20:20 +0200
commit0eb70e64c4dfbe48f6fb5d4873d4c02dca65bc4a (patch)
tree1b7ffe69eabd3ec37db7c1f011394cd921e7d855 /compiler/semdestruct.nim
parent1d191831c0c41536efc1a57be48f38b0746bd40f (diff)
parent6fd27a8a0849e2c1150b5f15b7b61d43b63642b2 (diff)
downloadNim-0eb70e64c4dfbe48f6fb5d4873d4c02dca65bc4a.tar.gz
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'compiler/semdestruct.nim')
-rw-r--r--compiler/semdestruct.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semdestruct.nim b/compiler/semdestruct.nim
index 9ea581f3a..85d106056 100644
--- a/compiler/semdestruct.nim
+++ b/compiler/semdestruct.nim
@@ -124,7 +124,7 @@ proc instantiateDestructor(c: PContext, typ: PType): PType =
   # destructor that must be used for the varialbe.
   # The destructor is either user-defined or automatically
   # generated by the compiler in a member-wise fashion.
-  var t = skipTypes(typ, {tyConst, tyMutable}).skipGenericAlias
+  var t = typ.skipGenericAlias
   let typeHoldingUserDefinition = if t.kind == tyGenericInst: t.base else: t
 
   if typeHoldingUserDefinition.destructor != nil: