From 560cfd48fc21205a7e7e0d4f17e2173e98fe76d3 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 2 Jul 2015 16:29:22 +0200 Subject: [PATCH] fixes broken merge --- compiler/sigmatch.nim | 6 +++++- tests/generics/moverloading_typedesc.nim | 4 ++-- tests/generics/toverloading_typedesc.nim | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 902b3bd614..fa27a8c95d 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -158,11 +158,15 @@ 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 ..