From 020b41e29495838f962dfb7f58a15a55e8b8b562 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 30 Dec 2016 01:43:26 +0100 Subject: [PATCH] fixes #5161 --- compiler/procfind.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/procfind.nim b/compiler/procfind.nim index 523ea2e2f4..137765ddba 100644 --- a/compiler/procfind.nim +++ b/compiler/procfind.nim @@ -71,7 +71,7 @@ proc searchForProcNew(c: PContext, scope: PScope, fn: PSym): PSym = result = initIdentIter(it, scope.symbols, fn.name) while result != nil: - if result.kind in skProcKinds and sameType(result.typ, fn.typ, flags): + if result.kind == fn.kind and sameType(result.typ, fn.typ, flags): case equalParams(result.typ.n, fn.typ.n) of paramsEqual: if (sfExported notin result.flags) and (sfExported in fn.flags):