summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-29 22:24:50 +0200
committerAraq <rumpf_a@web.de>2015-04-29 22:24:50 +0200
commit6d05ae26e66189c72af64f9ade054f9686e004be (patch)
treeaa587202856bb526e97300e48b547df96c70e652 /compiler
parent813a4f1d83c836c31f515b0923309681cdf12299 (diff)
downloadNim-6d05ae26e66189c72af64f9ade054f9686e004be.tar.gz
fixes regression caused by code cleanups
Diffstat (limited to 'compiler')
-rw-r--r--compiler/types.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/types.nim b/compiler/types.nim
index 1b30afc76..e205f5722 100644
--- a/compiler/types.nim
+++ b/compiler/types.nim
@@ -1460,7 +1460,7 @@ proc takeType*(formal, arg: PType): PType =
     let a = copyType(arg.skipTypes({tyGenericInst}), arg.owner, keepId=false)
     a.sons[ord(arg.kind in {tyArray, tyArrayConstr})] = formal.sons[0]
     result = a
-  elif formal.kind == tySet and arg.kind == tySet:
+  elif formal.kind in {tyTuple, tySet} and arg.kind == formal.kind:
     result = formal
   else:
     result = arg