From b159fc3b349573114ac990f52d5c3e10684f6a91 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 1 Jul 2015 17:42:12 +0200 Subject: [PATCH] fixes #2993 --- compiler/sigmatch.nim | 8 ++------ tests/namedparams/tnamedparams3.nim | 10 ++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 tests/namedparams/tnamedparams3.nim diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 97a059dbe..88a2155dc 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -158,15 +158,11 @@ proc sumGeneric(t: PType): int = t = t.sons[0] inc result inc isvar - of tyTypeDesc: - t = t.lastSon - if t.kind == tyEmpty: break - inc result of tyGenericInvocation, tyTuple: result += ord(t.kind == tyGenericInvocation) for i in 0 ..