From e40b6678919ae659ee209e248dc3e4c627c6e6c2 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 25 Apr 2015 23:13:38 +0200 Subject: fixes regression: overloading by 'var' --- compiler/sigmatch.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler/sigmatch.nim') diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index aad6b590e..2eda33c14 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -159,7 +159,7 @@ proc sumGeneric(t: PType): int = inc result inc isvar of tyGenericInvocation, tyTuple: - result = ord(t.kind == tyGenericInvocation) + result += ord(t.kind == tyGenericInvocation) for i in 0 ..