summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
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