From 6d05ae26e66189c72af64f9ade054f9686e004be Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 29 Apr 2015 22:24:50 +0200 Subject: fixes regression caused by code cleanups --- compiler/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0