From e40b6678919ae659ee209e248dc3e4c627c6e6c2 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 25 Apr 2015 23:13:38 +0200 Subject: [PATCH] fixes regression: overloading by 'var' --- compiler/sigmatch.nim | 5 +- lib/pure/basic3d.nim | 256 +++++++++++++++++++-------------------- tests/overload/tspec.nim | 10 +- 3 files changed, 140 insertions(+), 131 deletions(-) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index aad6b590ef..2eda33c145 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 ..