diff options
author | Araq <rumpf_a@web.de> | 2015-04-29 22:24:50 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-29 22:24:50 +0200 |
commit | 6d05ae26e66189c72af64f9ade054f9686e004be (patch) | |
tree | aa587202856bb526e97300e48b547df96c70e652 /compiler | |
parent | 813a4f1d83c836c31f515b0923309681cdf12299 (diff) | |
download | Nim-6d05ae26e66189c72af64f9ade054f9686e004be.tar.gz |
fixes regression caused by code cleanups
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/types.nim | 2 |
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 |